diff options
| author | rr- | 2016-06-16 13:14:34 +0200 |
|---|---|---|
| committer | rr- | 2016-06-17 00:38:43 +0200 |
| commit | 7f46f72a74d3c400145bece47266aaf01fb801d1 (patch) | |
| tree | b946914fa3d2581f1d01694efad8bcbf7641b0cc /client/js/controllers/auth_controller.js | |
| parent | 974bc7e908ec02d0f858e4456e5b5caf38a70181 (diff) | |
client/auth: fix password reminder
Diffstat (limited to 'client/js/controllers/auth_controller.js')
| -rw-r--r-- | client/js/controllers/auth_controller.js | 3 |
1 files changed, 2 insertions, 1 deletions
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); |