From f6a9c469f178752b469d76087a8616a78cffeb42 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 26 Nov 2023 08:38:54 -0800 Subject: [PATCH] Remove cookie password login --- web/app/view/dialog/Login.js | 8 +------- web/app/view/dialog/LoginController.js | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/web/app/view/dialog/Login.js b/web/app/view/dialog/Login.js index d565891476..592efb336a 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 @@ -127,12 +127,6 @@ Ext.define('Traccar.view.dialog.Login', { specialKey: 'onSpecialKey' }, inputAttrTpl: ['autocomplete="on"'] - }, { - xtype: 'checkboxfield', - inputValue: true, - uncheckedValue: false, - reference: 'rememberField', - fieldLabel: Strings.userRemember }, { xtype: 'component', html: '' diff --git a/web/app/view/dialog/LoginController.js b/web/app/view/dialog/LoginController.js index ce60a55007..e686709400 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 {