client/auth: fix password reminder
This commit is contained in:
parent
974bc7e908
commit
7f46f72a74
1 changed files with 2 additions and 1 deletions
|
@ -68,9 +68,10 @@ class AuthController {
|
|||
_passwordResetFinishRoute(name, token) {
|
||||
api.forget();
|
||||
api.logout();
|
||||
let password = null;
|
||||
api.post('/password-reset/' + name, {token: token})
|
||||
.then(response => {
|
||||
const password = response.password;
|
||||
password = response.password;
|
||||
return api.login(name, password, false);
|
||||
}, response => {
|
||||
return Promise.reject(response.description);
|
||||
|
|
Loading…
Reference in a new issue