Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/module/authentication/store/auth-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,11 @@ export class AuthStore {
},
method: "POST",
});

this.clearAll();
return true;
} catch (error) {
// If we weren't able to handle the error, then indicate that something unexpected
// If we weren't able to handle the error, then indicate that something unexpected happened
if (!this.handleError(error)) {
this.updateErrorField("emailError", "An unknown error occurred resetting email.");
}
Expand Down Expand Up @@ -261,7 +262,9 @@ export class AuthStore {

return true;
} catch (error) {
this.handleError(error);
if (!this.handleError(error)) {
this.updateErrorField("passwordError", "Log in failed.");
}
return false;
}
}
Expand Down Expand Up @@ -358,8 +361,6 @@ export class AuthStore {
parsedError = true;
break;
default:
this.updateErrorField("passwordError", "Log in failed.");
parsedError = true;
break;
}
}
Expand Down