aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/js/controllers/auth_controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/js/controllers/auth_controller.js b/client/js/controllers/auth_controller.js
index 39a0c43..607a21c 100644
--- a/client/js/controllers/auth_controller.js
+++ b/client/js/controllers/auth_controller.js
@@ -13,7 +13,6 @@ class AuthController {
const auth = cookies.getJSON('auth');
if (auth && auth.user && auth.password) {
api.login(auth.user, auth.password).catch(errorMessage => {
- cookies.remove('auth');
page('/');
this.loginView.notifyError(
'An error happened while trying to log you in: ' +
@@ -27,6 +26,7 @@ class AuthController {
this.loginView.render({
login: (name, password, doRemember) => {
return new Promise((resolve, reject) => {
+ cookies.remove('auth');
api.login(name, password)
.then(() => {
const options = {};

© 2015 - 2026 Jakob L. Kreuze