Skip to content

Commit

Permalink
Merge pull request #8940 from thesahindia/thesahindia/forgot-password
Browse files Browse the repository at this point in the history
Fix unresponsive "forgot" link
  • Loading branch information
Julesssss authored May 11, 2022
2 parents e569391 + 9da3967 commit cf01059
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/signin/PasswordForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ class PasswordForm extends React.Component {
* Trigger the reset password flow and ensure the 2FA input field is reset to avoid it being permanently hidden
*/
resetPassword() {
this.setState({twoFactorAuthCode: ''}, this.input2FA.clear);
if (this.input2FA) {
this.setState({twoFactorAuthCode: ''}, this.input2FA.clear);
}
Session.resetPassword();
}

Expand Down

0 comments on commit cf01059

Please sign in to comment.