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.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js
index dfff6b253..141905da8 100644
--- a/web/app/view/LoginController.js
+++ b/web/app/view/LoginController.js
@@ -39,9 +39,10 @@
url: '/api/login',
params: form.getValues(),
callback: function (options, success, response) {
+ var result;
Ext.getBody().unmask();
if (Traccar.ErrorManager.check(success, response)) {
- var result = Ext.decode(response.responseText);
+ result = Ext.decode(response.responseText);
if (result.success) {
Traccar.app.setUser(result.data);
this.fireViewEvent('login');