aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-18 00:16:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-18 00:16:55 +1300
commitf6294d79414299fc7e58c0a64545625c6301ec47 (patch)
tree71f45f133227df64b203bf3ded83f35b30f12691 /web/app/view
parente8850343bdb1e5e6a1c366aeacdff1f91bfa5daf (diff)
downloadtrackermap-web-f6294d79414299fc7e58c0a64545625c6301ec47.tar.gz
trackermap-web-f6294d79414299fc7e58c0a64545625c6301ec47.tar.bz2
trackermap-web-f6294d79414299fc7e58c0a64545625c6301ec47.zip
Check account on every call
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/LoginController.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js
index fbc703e9..436a1532 100644
--- a/web/app/view/LoginController.js
+++ b/web/app/view/LoginController.js
@@ -50,7 +50,11 @@ Ext.define('Traccar.view.LoginController', {
this.fireViewEvent('login');
} else {
this.getView().setVisible(true);
- Traccar.app.showError(Strings.loginFailed);
+ if (response.status === 401) {
+ Traccar.app.showError(Strings.loginFailed);
+ } else {
+ Traccar.app.showError(response.responseText);
+ }
}
}
});