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

(cherry picked from commit cf01059)
  • Loading branch information
Julesssss authored and OSBotify committed May 11, 2022
1 parent 5209491 commit 27ee78e
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 27ee78e

Please sign in to comment.