diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-18 00:16:55 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-18 00:16:55 +1300 |
commit | f6294d79414299fc7e58c0a64545625c6301ec47 (patch) | |
tree | 71f45f133227df64b203bf3ded83f35b30f12691 /web/app | |
parent | e8850343bdb1e5e6a1c366aeacdff1f91bfa5daf (diff) | |
download | trackermap-web-f6294d79414299fc7e58c0a64545625c6301ec47.tar.gz trackermap-web-f6294d79414299fc7e58c0a64545625c6301ec47.tar.bz2 trackermap-web-f6294d79414299fc7e58c0a64545625c6301ec47.zip |
Check account on every call
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/view/LoginController.js | 6 |
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); + } } } }); |