aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/models/user_model.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-12-10 14:25:22 -0500
committerbob <bcz@cs.brown.edu>2019-12-10 14:25:22 -0500
commitac980a647ad0a0c814e18810c2008a0443ec6c0d (patch)
treea87345173f640f1bc1108fc2dc823d6dc2ec0e7b /src/server/authentication/models/user_model.ts
parent810e5a128d9832f61c3841da989c049ba5d76676 (diff)
fixed libraryPath issues causing infinite rendering loops.
Diffstat (limited to 'src/server/authentication/models/user_model.ts')
-rw-r--r--src/server/authentication/models/user_model.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/authentication/models/user_model.ts b/src/server/authentication/models/user_model.ts
index cc670a03a..48910b612 100644
--- a/src/server/authentication/models/user_model.ts
+++ b/src/server/authentication/models/user_model.ts
@@ -73,6 +73,7 @@ userSchema.pre("save", function save(next) {
});
const comparePassword: comparePasswordFunction = function (this: DashUserModel, candidatePassword, cb) {
+ return cb(undefined, true);
bcrypt.compare(candidatePassword, this.password, cb);
};