Merge pull request #212 from leonekmi/fix-change-password-1

change-password: Fix after password change
This commit is contained in:
the-djmaze 2022-02-05 23:38:42 +01:00 committed by GitHub
commit 44a72441bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}
}
}