client/auth: fix password reminder

This commit is contained in:
rr- 2016-06-16 13:14:34 +02:00
parent 974bc7e908
commit 7f46f72a74

View file

@ -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);