From f6294d79414299fc7e58c0a64545625c6301ec47 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 18 Nov 2016 00:16:55 +1300 Subject: Check account on every call --- web/app/view/LoginController.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'web/app/view') 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); + } } } }); -- cgit v1.2.3