aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-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);