From bf30442ce8615b757d2e1b0859800c906e39a7c9 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Wed, 15 May 2013 10:56:13 +0200 Subject: random password is now generated for invited users --- models/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/User.js') diff --git a/models/User.js b/models/User.js index b3a3f1e..37ad39f 100644 --- a/models/User.js +++ b/models/User.js @@ -74,7 +74,7 @@ UserSchema.path('username').validate(function(username) { }, 'Username cannot be blank'); UserSchema.path('hashed_password').validate(function(hashed_password) { - if(authTypes.indexOf(this.provider) !== -1 || this.status === 1) return true; + if(authTypes.indexOf(this.provider) !== -1) return true; return hashed_password.length; }, 'Password cannot be blank'); -- cgit v1.2.3