aboutsummaryrefslogtreecommitdiff
path: root/client/js/controllers/auth_controller.js
diff options
context:
space:
mode:
authorrr-2016-05-08 17:25:55 +0200
committerrr-2016-05-08 18:04:06 +0200
commitda1386c7d2033a54ffe2ed625c3d40f9512bdf92 (patch)
treed867089bb1a05a2fb5ea4c8e424380f14ef6178f /client/js/controllers/auth_controller.js
parent0d2fc830a6a37e9826c30d15c3c3b17a0d77a6c2 (diff)
client/auth: forget user when they try to log in
This is to let user log in if their login cookie is broken (for example when it refers to a non existing user). Normally, the client should treat errors caused by cookie logins as temporary server failures, inform the user about it and leave the cookie, so that when the server is up again, all user needs to do is to reload the page rather than logging again.
Diffstat (limited to 'client/js/controllers/auth_controller.js')
-rw-r--r--client/js/controllers/auth_controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/js/controllers/auth_controller.js b/client/js/controllers/auth_controller.js
index 9db2a00..01c0143 100644
--- a/client/js/controllers/auth_controller.js
+++ b/client/js/controllers/auth_controller.js
@@ -24,6 +24,7 @@ class AuthController {
}
loginRoute() {
+ api.forget();
topNavController.activate('login');
this.loginView.render({
login: (name, password, doRemember) => {

© 2015 - 2026 Jakob L. Kreuze