diff options
Diffstat (limited to 'web/app/view/UserDialogController.js')
-rw-r--r-- | web/app/view/UserDialogController.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/web/app/view/UserDialogController.js b/web/app/view/UserDialogController.js index 7dc1d889..0f1c022b 100644 --- a/web/app/view/UserDialogController.js +++ b/web/app/view/UserDialogController.js @@ -35,17 +35,13 @@ Ext.define('Traccar.view.UserDialogController', { generateToken: function () { var i, newToken = ''; - for (i = 0; i < 20; i++) { + for (i = 0; i < 32; i++) { newToken += this.symbols.charAt(Math.floor(Math.random() * this.symbols.length)); } this.lookupReference('tokenField').setValue(newToken); }, - clearToken: function () { - this.lookupReference('tokenField').setValue(''); - }, - onSaveClick: function (button) { var dialog, record, store; dialog = button.up('window').down('form'); |