aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-11-26 08:38:54 -0800
committerAnton Tananaev <anton@traccar.org>2023-11-26 08:38:54 -0800
commitf6a9c469f178752b469d76087a8616a78cffeb42 (patch)
tree251a9855c9fdb19171133382e2ed3cd6f990ecc4 /web/app/view
parentd90ec814f5b76ec9b733ac77b3c0ea1eb5e7570e (diff)
downloadtrackermap-web-f6a9c469f178752b469d76087a8616a78cffeb42.tar.gz
trackermap-web-f6a9c469f178752b469d76087a8616a78cffeb42.tar.bz2
trackermap-web-f6a9c469f178752b469d76087a8616a78cffeb42.zip
Remove cookie password login
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/dialog/Login.js8
-rw-r--r--web/app/view/dialog/LoginController.js8
2 files changed, 2 insertions, 14 deletions
diff --git a/web/app/view/dialog/Login.js b/web/app/view/dialog/Login.js
index d5658914..592efb33 100644
--- a/web/app/view/dialog/Login.js
+++ b/web/app/view/dialog/Login.js
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2017 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2023 Anton Tananaev (anton@traccar.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -128,12 +128,6 @@ Ext.define('Traccar.view.dialog.Login', {
},
inputAttrTpl: ['autocomplete="on"']
}, {
- xtype: 'checkboxfield',
- inputValue: true,
- uncheckedValue: false,
- reference: 'rememberField',
- fieldLabel: Strings.userRemember
- }, {
xtype: 'component',
html: '<iframe id="submitTarget" name="submitTarget" style="display:none"></iframe>'
}, {
diff --git a/web/app/view/dialog/LoginController.js b/web/app/view/dialog/LoginController.js
index ce60a550..e6867094 100644
--- a/web/app/view/dialog/LoginController.js
+++ b/web/app/view/dialog/LoginController.js
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2021 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2023 Anton Tananaev (anton@traccar.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -43,12 +43,6 @@ Ext.define('Traccar.view.dialog.LoginController', {
var user, password;
Ext.get('spinner').setVisible(false);
if (success) {
- if (this.lookupReference('rememberField').getValue()) {
- user = Ext.util.Base64.encode(this.lookupReference('userField').getValue());
- password = Ext.util.Base64.encode(this.lookupReference('passwordField').getValue());
- Ext.util.Cookies.set('user', user, Ext.Date.add(new Date(), Ext.Date.YEAR, 1));
- Ext.util.Cookies.set('password', password, Ext.Date.add(new Date(), Ext.Date.YEAR, 1));
- }
Traccar.app.setUser(Ext.decode(response.responseText));
this.fireViewEvent('login');
} else {