diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-20 21:29:10 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-20 21:29:10 +1300 |
commit | 86e790c93f68016bcbf691adca8a0edfebb5fa38 (patch) | |
tree | b4220b09a70ebe4a614aff40ce4927814b6d194f /web/app/view/UserDialogController.js | |
parent | 8e02928c79f84fbf37c9df51875c63af410166ac (diff) | |
parent | a1e2bea0ad1cf7512d941ef16e9356301b130ee9 (diff) | |
download | trackermap-web-86e790c93f68016bcbf691adca8a0edfebb5fa38.tar.gz trackermap-web-86e790c93f68016bcbf691adca8a0edfebb5fa38.tar.bz2 trackermap-web-86e790c93f68016bcbf691adca8a0edfebb5fa38.zip |
Merge pull request #330 from Abyss777/token_improve
Decrease chances of not unique tokens
Diffstat (limited to 'web/app/view/UserDialogController.js')
-rw-r--r-- | web/app/view/UserDialogController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/UserDialogController.js b/web/app/view/UserDialogController.js index 020bd801..0f1c022b 100644 --- a/web/app/view/UserDialogController.js +++ b/web/app/view/UserDialogController.js @@ -35,7 +35,7 @@ Ext.define('Traccar.view.UserDialogController', { generateToken: function () { var i, newToken = ''; - for (i = 0; i < 16; i++) { + for (i = 0; i < 32; i++) { newToken += this.symbols.charAt(Math.floor(Math.random() * this.symbols.length)); } |