core: add support for changing account email

This commit is contained in:
Abdullah Atta
2023-01-09 15:04:44 +05:00
committed by Abdullah Atta
parent 1b471a2fda
commit b439571e17
2 changed files with 33 additions and 3 deletions

View File

@@ -256,8 +256,12 @@ class Database {
await this.user.logout(false, "Account Deleted");
break;
}
case "userEmailChanged": {
await this.user.logout(true, "Email changed");
break;
}
case "userPasswordChanged": {
await this.user.logout(true, "Password Changed");
await this.user.logout(true, "Password changed");
break;
}
case "emailConfirmed": {