aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/LoginController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/LoginController.js')
-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);
+ }
}
}
});