aboutsummaryrefslogtreecommitdiff
path: root/client/js/controllers/auth_controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/controllers/auth_controller.js')
-rw-r--r--client/js/controllers/auth_controller.js3
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);

© 2015 - 2026 Jakob L. Kreuze