aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-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.js12
3 files changed, 0 insertions, 26 deletions
diff --git a/web/app/model/User.js b/web/app/model/User.js
index fcaff007..455bca64 100644
--- a/web/app/model/User.js
+++ b/web/app/model/User.js
@@ -87,9 +87,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 7335ee79..5da56424 100644
--- a/web/app/view/dialog/User.js
+++ b/web/app/view/dialog/User.js
@@ -172,17 +172,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 4ba48563..0d620614 100644
--- a/web/app/view/dialog/UserController.js
+++ b/web/app/view/dialog/UserController.js
@@ -35,18 +35,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',