change-password: Use setData instead of deprecated methods after password change to refresh webapp.

This commit is contained in:
Leon 2022-02-05 21:02:19 +01:00
parent 0a6a8fa299
commit d9d21845ba
2 changed files with 2 additions and 2 deletions

View file

@ -176,7 +176,7 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
$oAccount->SetPassword($sNewPassword);
$oActions->SetAuthToken($oAccount);
return $this->jsonResponse(__FUNCTION__, $oActions->GetSpecAuthToken());
return $this->jsonResponse(__FUNCTION__, $oActions->AppData(false));
}
public static function encrypt(string $algo, string $password)

View file

@ -117,7 +117,7 @@
this.newPassword('');
this.newPassword2('');
this.passwordUpdateSuccess(true);
rl.settings.set('AuthAccountHash', data.Result);
rl.setData(data.Result);
}
}
}