aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorninioe <ninioe@gmail.com>2016-08-07 10:14:37 +0300
committerninioe <ninioe@gmail.com>2016-08-07 10:14:37 +0300
commit26fb811c067e11f884640fd9f13be2ab8f77b400 (patch)
tree0bde962eba120aa467d14559be9f60623b319438 /web/app/view
parente35bb104574105e94872fef42607f3ccd19f12b8 (diff)
downloadtrackermap-server-26fb811c067e11f884640fd9f13be2ab8f77b400.tar.gz
trackermap-server-26fb811c067e11f884640fd9f13be2ab8f77b400.tar.bz2
trackermap-server-26fb811c067e11f884640fd9f13be2ab8f77b400.zip
fix references names
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/LoginController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js
index 47fae59f9..8beef1e04 100644
--- a/web/app/view/LoginController.js
+++ b/web/app/view/LoginController.js
@@ -40,9 +40,9 @@ Ext.define('Traccar.view.LoginController', {
callback: function (options, success, response) {
Ext.getBody().unmask();
if (success) {
- if (this.lookupReference('rememberMeField').getValue()) {
+ if (this.lookupReference('rememberField').getValue()) {
Ext.util.Cookies.set('user', this.lookupReference('userField').getValue(), Ext.Date.add(new Date(), Ext.Date.YEAR, 1));
- Ext.util.Cookies.set('pass', this.lookupReference('passwordField').getValue(), Ext.Date.add(new Date(), Ext.Date.YEAR, 1));
+ Ext.util.Cookies.set('password', this.lookupReference('passwordField').getValue(), Ext.Date.add(new Date(), Ext.Date.YEAR, 1));
}
Traccar.app.setUser(Ext.decode(response.responseText));
this.fireViewEvent('login');
@@ -56,7 +56,7 @@ Ext.define('Traccar.view.LoginController', {
logout: function () {
Ext.util.Cookies.clear('user');
- Ext.util.Cookies.clear('pass');
+ Ext.util.Cookies.clear('password');
Ext.Ajax.request({
scope: this,
method: 'DELETE',