aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-04 22:27:09 +0300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-04 22:27:09 +0300
commit656690d02dd5bbc5962bec63fb94ea7728b42327 (patch)
treef4f2b2b7578d09abe37f7f7ad5e317a2db5ece51
parenta69571deae6ea788edca58238cee521800a7ef7d (diff)
downloadtrackermap-server-656690d02dd5bbc5962bec63fb94ea7728b42327.tar.gz
trackermap-server-656690d02dd5bbc5962bec63fb94ea7728b42327.tar.bz2
trackermap-server-656690d02dd5bbc5962bec63fb94ea7728b42327.zip
Rename pass to password
-rw-r--r--web/app/view/LoginController.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js
index 1a04ae974..7a78a6fb1 100644
--- a/web/app/view/LoginController.js
+++ b/web/app/view/LoginController.js
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2015 - 2016 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,10 +27,10 @@ Ext.define('Traccar.view.LoginController', {
!Traccar.app.getServer().get('registration'));
this.lookupReference('languageField').setValue(Locale.language);
var user = Ext.util.Cookies.get('user');
- var pass = Ext.util.Cookies.get('pass');
- if (user && pass) {
+ var password = Ext.util.Cookies.get('password');
+ if (user && password) {
this.lookupReference('userField').setValue(user);
- this.lookupReference('passwordField').setValue(pass);
+ this.lookupReference('passwordField').setValue(password);
this.login();
}
},
@@ -49,7 +49,7 @@ Ext.define('Traccar.view.LoginController', {
if (success) {
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');
@@ -63,7 +63,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',