aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-08-08 09:47:35 -0500
committerIván Ávalos <avalos@disroot.org>2022-08-08 09:47:35 -0500
commit3240d452cbcdf9553e47d5a95604e5c7e92924cd (patch)
treebac3018c194029c42eda84d1e1518f62ee3bb12f
parentf1288af6c703c6e5c99bc37cac03ae4b48c1a38f (diff)
downloadetbsa-traccar-web-3240d452cbcdf9553e47d5a95604e5c7e92924cd.tar.gz
etbsa-traccar-web-3240d452cbcdf9553e47d5a95604e5c7e92924cd.tar.bz2
etbsa-traccar-web-3240d452cbcdf9553e47d5a95604e5c7e92924cd.zip
Got rid of token field
-rw-r--r--web/app/model/User.js3
-rw-r--r--web/app/view/dialog/User.js11
-rw-r--r--web/app/view/dialog/UserController.js10
3 files changed, 0 insertions, 24 deletions
diff --git a/web/app/model/User.js b/web/app/model/User.js
index 76f2a36..924a576 100644
--- a/web/app/model/User.js
+++ b/web/app/model/User.js
@@ -84,9 +84,6 @@ Ext.define('Traccar.model.User', {
name: 'poiLayer',
type: 'string'
}, {
- name: 'token',
- type: 'string'
- }, {
name: 'attributes'
}],
diff --git a/web/app/view/dialog/User.js b/web/app/view/dialog/User.js
index 917f110..511db86 100644
--- a/web/app/view/dialog/User.js
+++ b/web/app/view/dialog/User.js
@@ -164,17 +164,6 @@ Ext.define('Traccar.view.dialog.User', {
fieldLabel: Strings.userUserLimit,
disabled: true,
reference: 'userLimitField'
- }, {
- xtype: 'unescapedTextField',
- name: 'token',
- reference: 'tokenField',
- fieldLabel: Strings.userToken,
- triggers: {
- generate: {
- cls: 'iconCls: x-fa fa-refresh',
- handler: 'generateToken'
- }
- }
}]
}]
},
diff --git a/web/app/view/dialog/UserController.js b/web/app/view/dialog/UserController.js
index 7383f9e..9a2e3b6 100644
--- a/web/app/view/dialog/UserController.js
+++ b/web/app/view/dialog/UserController.js
@@ -36,16 +36,6 @@ Ext.define('Traccar.view.dialog.UserController', {
symbols: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
- generateToken: function () {
- var i, newToken = '';
-
- for (i = 0; i < 32; i++) {
- newToken += this.symbols.charAt(Math.floor(Math.random() * this.symbols.length));
- }
-
- this.lookupReference('tokenField').setValue(newToken);
- },
-
testNotification: function () {
Ext.Ajax.request({
url: 'api/notifications/test',