L
L
lexstile2022-01-04 20:10:23
PHP
lexstile, 2022-01-04 20:10:23

How to properly organize password recovery through jwt?

Sending a link to an email like this:

/restore/{header}.{payload}.{sign}

But I run into the problem that it does not open the url, but writes:
Cannot GET /restore/{header}.{payload}.{sign}

I tried to encode dots into the corresponding character sets, but the mailer and browser automatically replace them back with a dot.

In my understanding, the only option remains - through the get-parameter, for example, {token}, so that the link looks like:
/restore?token={header}.{payload}.{sign}


Is it possible to solve the problem differently and how best to solve it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question