diff options
-rw-r--r-- | web/app/view/dialog/Login.js | 8 | ||||
-rw-r--r-- | 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 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 { |