Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing page to handle self generated reset-password link #564

Closed
sunapi386 opened this issue May 1, 2020 · 1 comment
Closed

Missing page to handle self generated reset-password link #564

sunapi386 opened this issue May 1, 2020 · 1 comment

Comments

@sunapi386
Copy link

This link this is not handled by the CheckAuth router.

https://.localhost:3000/reset-password?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNhY2NkNjMwLTcxYjEtNGMxOS1hMjM5LTYxMmY1ODE3Nzk4NSIsImlhdCI6MTU4ODM1MDE4OCwiZXhwIjoxNTkwNzY5Mzg4LCJhdWQiOlsiQGZhbmN5c3RhY2svYXBwIiwiQGZhbmN5c3RhY2svd2ViIl0sImlzcyI6IkBmYW5jeXN0YWNrL2FwaSJ9.I-VV2sgiM8lNFcbaQNBXRFYojdrY7zZy63DaGie8w_0

I see the api exists in user.resolver.ts so maybe this page was forgotten to be added. I could create a PR for my version of this page or you guys can add it.

sunapi386 added a commit to sunapi386/fancystack that referenced this issue May 1, 2020
- The base repo did not handle reset password links. So I made a page to handle it, and added to the router path.
- The base repo's reset link worked for up to 4w and worked multiple times. So I made the link expire in 1d, and used the user's current password's hash for signing the JWT token, in this way all tokens generated before a successful password change would get invalidated the next time.
- The base repo's reset entity did not hash the user's password upon insert, so I annotated the hashing with `@BeforeUpdate()`

Accepting this PR closes NoQuarterTeam#564
sunapi386 added a commit to sunapi386/fancystack that referenced this issue Jun 28, 2020
- The base repo did not handle reset password links. So I made a page to handle it, and added to the router path.
- The base repo's reset link worked for up to 4w and worked multiple times. So I made the link expire in 1d, and used the user's current password's hash for signing the JWT token, in this way all tokens generated before a successful password change would get invalidated the next time.
- The base repo's reset entity did not hash the user's password upon insert, so I annotated the hashing with `@BeforeUpdate()`

Accepting this PR closes NoQuarterTeam#564
- Rebased from master
sunapi386 added a commit to sunapi386/fancystack that referenced this issue Jun 28, 2020
- The base repo did not handle reset password links. So I made a page to handle it, and added to the router path.
- The base repo's reset link worked for up to 4w and worked multiple times. So I made the link expire in 1d, and used the user's current password's hash for signing the JWT token, in this way all tokens generated before a successful password change would get invalidated the next time.
- The base repo's reset entity did not hash the user's password upon insert, so I annotated the hashing with `@BeforeUpdate()`

Accepting this PR closes NoQuarterTeam#564
- Rebased from master (Jun 27)
@JClackett
Copy link
Member

New release has this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants