aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/app/view/login/Login.js19
-rw-r--r--web/app/view/login/LoginController.js1
2 files changed, 18 insertions, 2 deletions
diff --git a/web/app/view/login/Login.js b/web/app/view/login/Login.js
index bfb657b96..adb04cf0c 100644
--- a/web/app/view/login/Login.js
+++ b/web/app/view/login/Login.js
@@ -32,6 +32,13 @@ Ext.define('Traccar.view.login.Login', {
xtype: 'form',
reference: 'form',
+ autoEl: {
+ tag: 'form',
+ method: 'POST',
+ action: 'blank.html',
+ target: 'submitTarget'
+ },
+
items: [{
xtype: 'combobox',
name: 'language',
@@ -53,7 +60,8 @@ Ext.define('Traccar.view.login.Login', {
listeners: {
specialKey: 'onSpecialKey',
afterrender: 'onAfterRender'
- }
+ },
+ inputAttrTpl: ['autocomplete="on"']
}, {
xtype: 'textfield',
name: 'password',
@@ -63,7 +71,14 @@ Ext.define('Traccar.view.login.Login', {
enableKeyEvents: true,
listeners: {
specialKey: 'onSpecialKey'
- }
+ },
+ inputAttrTpl: ['autocomplete="on"']
+ }, {
+ xtype: 'component',
+ html: '<iframe id="submitTarget" name="submitTarget" style="display:none"></iframe>'
+ }, {
+ xtype: 'component',
+ html: '<input type="submit" id="submitButton" style="display:none">'
}]
},
diff --git a/web/app/view/login/LoginController.js b/web/app/view/login/LoginController.js
index 2cc72caf2..e809b0fbc 100644
--- a/web/app/view/login/LoginController.js
+++ b/web/app/view/login/LoginController.js
@@ -61,6 +61,7 @@ Ext.define('Traccar.view.login.LoginController', {
},
onLoginClick: function() {
+ Ext.getElementById('submitButton').click();
this.doLogin();
},