Merge pull request #5688 from overleaf/jpa-invalid-password-message

[web] password reset: validate user password ahead of invalidating token

GitOrigin-RevId: ba3e6549f53675a2216e2fc24293276c1968d416
This commit is contained in:
Hugh O'Brien
2021-11-10 09:02:38 +00:00
committed by Copybot
parent d8dfcf7708
commit 3b95ac6d88
4 changed files with 61 additions and 2 deletions
@@ -54,6 +54,9 @@ describe('PasswordResetController', function () {
requires: {
'@overleaf/settings': this.settings,
'./PasswordResetHandler': this.PasswordResetHandler,
'../Authentication/AuthenticationManager': {
validatePassword: sinon.stub().returns(null),
},
'../Authentication/AuthenticationController': (this.AuthenticationController = {
getLoggedInUserId: sinon.stub(),
finishLogin: sinon.stub(),