overleaf/services/web/app/views/user
June Kelly 3288f87dbe [web] Password set/reset: reject current password (redux) (#8956)
* [web] set-password: reject same as current password

* [web] Add 'peek' operation on tokens

This allows us to improve the UX of the reset-password form,
by not invalidating the token in the case where the new
password will be rejected by validation logic.

We give up to three attempts before invalidating the token.

* [web] Add hide-on-error feature to async forms

This allows us to hide the form elements when certain
named error conditions occur.

* [web] reset-password: handle same-password rejection

We also change the implementation to use the new
peekValueFromToken API, and to expire the token explicitely
after it has been used to set the new password.

* [web] Validate OneTimeToken when loading password reset form

* [web] Rate limit GET: /user/password/set

Now that we are peeking at OneTimeToken when accessing this page,
we add rate to the GET request, matching that of the POST request.

* [web] Tidy up pug layout and mongo query for token peeking

Co-authored-by: Mathias Jakobsen <mathias.jakobsen@overleaf.com>
GitOrigin-RevId: 835205cc7c7ebe1209ee8e5b693efeb939a3056a
2022-09-28 08:06:54 +00:00
..
settings Primary Email Check (#6471) 2022-02-04 09:03:34 +00:00
confirm_email.pug Merge pull request #6604 from overleaf/msm-jpa-add-go-to-settings-email-confirmation 2022-02-16 11:33:34 +00:00
email-preferences.pug Merge pull request #7742 from overleaf/ta-email-preferences-page 2022-04-28 08:03:12 +00:00
login.pug [web] Add the meta[viewport] tag to all pages (#6301) 2022-01-20 09:03:48 +00:00
logout.pug [web] Add the meta[viewport] tag to all pages (#6301) 2022-01-20 09:03:48 +00:00
one_time_login.pug [web] Add the meta[viewport] tag to all pages (#6301) 2022-01-20 09:03:48 +00:00
passwordReset.pug [web] Password set/reset: reject current password (redux) (#8956) 2022-09-28 08:06:54 +00:00
primaryEmailCheck.pug Adjusted primary-email-check page styling (#6626) 2022-02-18 09:04:14 +00:00
reconfirm.pug Merge pull request #6424 from overleaf/jpa-multi-submit-async-form 2022-01-26 09:02:55 +00:00
register.pug Merge pull request #8626 from overleaf/ta-register-copy 2022-07-08 08:03:03 +00:00
restricted.pug Merge pull request #4945 from overleaf/jpa-jk-audit 2021-09-16 08:03:24 +00:00
sessions.pug Merge pull request #7742 from overleaf/ta-email-preferences-page 2022-04-28 08:03:12 +00:00
setPassword.pug [web] Password set/reset: reject current password (redux) (#8956) 2022-09-28 08:06:54 +00:00
settings.pug Merge pull request #9389 from overleaf/mj-angular-settings-cleanup 2022-08-30 08:03:52 +00:00