aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/models/User.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/User.js')
-rw-r--r--models/User.js2
1 files changed, 1 insertions, 1 deletions
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');