diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-15 13:40:49 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-15 13:40:49 +0200 |
commit | ab1444e204ac343f117d83232346e10bf0df843b (patch) | |
tree | c03dd609475245ab1622743b58cfb9987b154a01 /models | |
parent | added route for claimInvite (diff) | |
download | Divid-ab1444e204ac343f117d83232346e10bf0df843b.tar.gz |
fixed regressionerror
Diffstat (limited to 'models')
-rw-r--r-- | models/User.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/User.js b/models/User.js index c5f9df7..216b8b0 100644 --- a/models/User.js +++ b/models/User.js @@ -148,7 +148,7 @@ UserSchema.methods = { generateRandomToken: function(length) { if (typeof(length) === 'undefined') length = 16; // default length of token - var chars = '_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; + var chars = '_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' , token = new Date().getTime() + '_'; for (var i = 0; i < length; i++) { var x = Math.floor(Math.random() * chars.length); |