From ab1444e204ac343f117d83232346e10bf0df843b Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Wed, 15 May 2013 13:40:49 +0200 Subject: fixed regressionerror --- models/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models') 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); -- cgit v1.2.3