Skip to content

Commit

Permalink
fix: Error logging in with TOTP on "reset password" workflow (#28938)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 committed Apr 17, 2023
1 parent 390523f commit 8bc5bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/2fa/server/loginHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ callbacks.add(
throw new Meteor.Error('verify-email', 'E-mail verified');
}

if (login.type === 'resume' || login.type === 'proxy') {
if (login.type === 'resume' || login.type === 'proxy' || (login.type === 'password' && login.methodName === 'resetPassword')) {
return login;
}
// CAS login doesn't yet support 2FA.
Expand Down

0 comments on commit 8bc5bd1

Please sign in to comment.