aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-15 13:40:49 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-15 13:40:49 +0200
commitab1444e204ac343f117d83232346e10bf0df843b (patch)
treec03dd609475245ab1622743b58cfb9987b154a01
parentadded route for claimInvite (diff)
downloadDivid-ab1444e204ac343f117d83232346e10bf0df843b.tar.gz
fixed regressionerror
-rw-r--r--models/User.js2
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);