aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-05 17:25:47 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-05 17:25:47 +1200
commit141830fd58ee8bff47aac5ebd8e05b6cf4d2d151 (patch)
tree277f4c4aec9befdbab687d82e2708f48df0fc156 /web
parent1f74c68922d0ee603674275134eef02279f9c97c (diff)
downloadtraccar-server-141830fd58ee8bff47aac5ebd8e05b6cf4d2d151.tar.gz
traccar-server-141830fd58ee8bff47aac5ebd8e05b6cf4d2d151.tar.bz2
traccar-server-141830fd58ee8bff47aac5ebd8e05b6cf4d2d151.zip
Allow browser password saving
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();
},