Fix the problem that the password reset email has to be confirmed twice (#9926)
This commit is contained in:
parent
576d103159
commit
eb43f3449e
2 changed files with 33 additions and 0 deletions
|
@ -262,6 +262,8 @@ export default class ForgotPassword extends React.Component<Props, State> {
|
|||
|
||||
try {
|
||||
await this.reset.setNewPassword(this.state.password);
|
||||
this.setState({ phase: Phase.Done });
|
||||
return;
|
||||
} catch (err: any) {
|
||||
if (err.httpStatus !== 401) {
|
||||
// 401 = waiting for email verification, else unknown error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue