From 7f46f72a74d3c400145bece47266aaf01fb801d1 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 16 Jun 2016 13:14:34 +0200 Subject: [PATCH] client/auth: fix password reminder --- client/js/controllers/auth_controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/js/controllers/auth_controller.js b/client/js/controllers/auth_controller.js index b1a52b2..f470e22 100644 --- a/client/js/controllers/auth_controller.js +++ b/client/js/controllers/auth_controller.js @@ -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);