diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-18 19:12:43 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-18 19:12:43 +1300 |
commit | a252dbe43512c75afd4a17075b834f767576fd28 (patch) | |
tree | 71f45f133227df64b203bf3ded83f35b30f12691 /web/app/view/LoginController.js | |
parent | 469869d4c01cd5385acee0c84faa226775454e79 (diff) | |
parent | f6294d79414299fc7e58c0a64545625c6301ec47 (diff) | |
download | etbsa-traccar-web-a252dbe43512c75afd4a17075b834f767576fd28.tar.gz etbsa-traccar-web-a252dbe43512c75afd4a17075b834f767576fd28.tar.bz2 etbsa-traccar-web-a252dbe43512c75afd4a17075b834f767576fd28.zip |
Merge pull request #322 from tananaev/users
Add user expiration and device limit
Diffstat (limited to 'web/app/view/LoginController.js')
-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 fbc703e..436a153 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); + } } } }); |