aboutsummaryrefslogtreecommitdiff
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
parente35bb104574105e94872fef42607f3ccd19f12b8 (diff)
downloadtrackermap-server-26fb811c067e11f884640fd9f13be2ab8f77b400.tar.gz
trackermap-server-26fb811c067e11f884640fd9f13be2ab8f77b400.tar.bz2
trackermap-server-26fb811c067e11f884640fd9f13be2ab8f77b400.zip
fix references names
-rw-r--r--src/org/traccar/api/resource/SessionResource.java2
-rw-r--r--web/app/view/LoginController.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/api/resource/SessionResource.java b/src/org/traccar/api/resource/SessionResource.java
index ae2c919e9..49670c1f9 100644
--- a/src/org/traccar/api/resource/SessionResource.java
+++ b/src/org/traccar/api/resource/SessionResource.java
@@ -41,7 +41,7 @@ public class SessionResource extends BaseResource {
public static final String USER_ID_KEY = "userId";
public static final String USER_COOKIE_KEY = "user";
- public static final String PASS_COOKIE_KEY = "pass";
+ public static final String PASS_COOKIE_KEY = "password";
@javax.ws.rs.core.Context
private HttpServletRequest request;
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',