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