diff options
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 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); + } } } }); |