mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-11-09 23:01:51 +08:00
change-password: Use setData instead of deprecated methods after password change to refresh webapp.
This commit is contained in:
parent
0a6a8fa299
commit
d9d21845ba
2 changed files with 2 additions and 2 deletions
|
|
@ -176,7 +176,7 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
$oAccount->SetPassword($sNewPassword);
|
$oAccount->SetPassword($sNewPassword);
|
||||||
$oActions->SetAuthToken($oAccount);
|
$oActions->SetAuthToken($oAccount);
|
||||||
|
|
||||||
return $this->jsonResponse(__FUNCTION__, $oActions->GetSpecAuthToken());
|
return $this->jsonResponse(__FUNCTION__, $oActions->AppData(false));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function encrypt(string $algo, string $password)
|
public static function encrypt(string $algo, string $password)
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
this.newPassword('');
|
this.newPassword('');
|
||||||
this.newPassword2('');
|
this.newPassword2('');
|
||||||
this.passwordUpdateSuccess(true);
|
this.passwordUpdateSuccess(true);
|
||||||
rl.settings.set('AuthAccountHash', data.Result);
|
rl.setData(data.Result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue