aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-20 21:29:10 +1300
committerGitHub <noreply@github.com>2016-11-20 21:29:10 +1300
commit86e790c93f68016bcbf691adca8a0edfebb5fa38 (patch)
treeb4220b09a70ebe4a614aff40ce4927814b6d194f /web/app/view
parent8e02928c79f84fbf37c9df51875c63af410166ac (diff)
parenta1e2bea0ad1cf7512d941ef16e9356301b130ee9 (diff)
downloadtrackermap-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')
-rw-r--r--web/app/view/UserDialogController.js2
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));
}