Support password reset workflow on Webatrice (#4445)

* Support password reset workflow. Also fix issue where a user would be disconnected "randomly" if they had a failed login, then successful one. Refactored a bit on Status Labels since they weren't really necessary and added complexity.

* Disconnect in default cases where we don't know what to do, but shouldn't stay connected to the server
This commit is contained in:
Zach H 2021-10-31 22:03:38 -04:00 committed by GitHub
parent 013bb8269f
commit ac300b0b6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 189 additions and 77 deletions

View file

@ -80,4 +80,21 @@ export class SessionPersistence {
static accountActivationFailed() {
console.log("Account activation failed, show an action here");
}
static resetPasswordChallenge() {
console.log("Open Modal asking for Email address associated with account");
}
static resetPassword() {
console.log("Open Modal asking for reset token & new password");
}
static resetPasswordSuccess() {
console.log("User password successfully changed Alert!");
}
static resetPasswordFailed() {
console.log("Open Alert telling user their password request failed for some reason");
}
}