Closed kierancott closed 3 years ago
Commit: https://github.com/develop-me/bagajob/commit/55630843d1a5c240161331762018bed7dedafe9a
Action:
use-query-params
and query-string
npm packages<QueryParamProvider ReactRouterRoute={Route}>
Result:
{email: "email@email.com", password: "newpassword", token: "tokenstring47HFD98SJNFUIhki93"}
Email, Token and Password now being sent to server with status code 200.
I'm seeing this resolved in my testing!
Issue: The URL supplied in the email is not hitting a route. e.g.: http://localhost:3000/password-reset/?email=nik%40nikolaso.com&token=fR7oRdqYuCgPms2N2QzSxMMCZsGX9aO8hke9l4bFGbqpbn1YIYnwn0jE5lUc where
email=nik%40nikolaso.com
&token=fR7oRdqYuCgPms2N2QzSxMMCZsGX9aO8hke9l4bFGbqpbn1YIYnwn0jE5lUc
are query parameters.Action: Modify the
password-reset
route inApp.js
from/password-reset/:token
to handle both theemail
andtoken
query parameters as above.