mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-24 08:32:34 +02:00
fix: issue displaying expired subscription after password change
This commit is contained in:
@@ -22,6 +22,10 @@ function ChangePassword() {
|
||||
user
|
||||
.save()
|
||||
.then(() => {
|
||||
let _user = user.toJSON();
|
||||
if (_user) {
|
||||
localStorage.setItem("accesstoken", _user.sessionToken);
|
||||
}
|
||||
alert("Password updated successfully.");
|
||||
})
|
||||
.catch((error) => {
|
||||
@@ -32,7 +36,6 @@ function ChangePassword() {
|
||||
} else {
|
||||
alert("Your current password is missing or incorrect.");
|
||||
}
|
||||
console.log("Logged in user", user);
|
||||
})
|
||||
.catch((error) => {
|
||||
alert("Your current password is missing or incorrect.");
|
||||
|
||||
Reference in New Issue
Block a user