Fix logout devices on password reset (#9925)
This commit is contained in:
@@ -104,6 +104,10 @@ export default class PasswordReset {
|
||||
);
|
||||
}
|
||||
|
||||
public setLogoutDevices(logoutDevices: boolean): void {
|
||||
this.logoutDevices = logoutDevices;
|
||||
}
|
||||
|
||||
public async setNewPassword(password: string): Promise<void> {
|
||||
this.password = password;
|
||||
await this.checkEmailLinkClicked();
|
||||
|
||||
@@ -258,6 +258,7 @@ export default class ForgotPassword extends React.Component<Props, State> {
|
||||
}
|
||||
|
||||
this.phase = Phase.ResettingPassword;
|
||||
this.reset.setLogoutDevices(this.state.logoutDevices);
|
||||
|
||||
try {
|
||||
await this.reset.setNewPassword(this.state.password);
|
||||
|
||||
Reference in New Issue
Block a user