aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/models/user_model.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-04-16 11:00:55 -0400
committerbob <bcz@cs.brown.edu>2019-04-16 11:00:55 -0400
commitbb935a1af68c3684640cf93e04b55324142b05ea (patch)
tree571369e8b17af15e231e1c22f08d05597ae2e815 /src/server/authentication/models/user_model.ts
parentb7a766aa5d53686e032b34d7213ad543108f12c3 (diff)
parent5acba4487b3cb66d194e7e3c4c06c5ed8e2c04b4 (diff)
Merge branch 'master' into richTextEditor
Diffstat (limited to 'src/server/authentication/models/user_model.ts')
-rw-r--r--src/server/authentication/models/user_model.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/authentication/models/user_model.ts b/src/server/authentication/models/user_model.ts
index d5c84c311..ee85e1c05 100644
--- a/src/server/authentication/models/user_model.ts
+++ b/src/server/authentication/models/user_model.ts
@@ -85,8 +85,7 @@ userSchema.pre("save", function save(next) {
});
const comparePassword: comparePasswordFunction = function (this: DashUserModel, candidatePassword, cb) {
- bcrypt.compare(candidatePassword, this.password, (err: mongoose.Error, isMatch: boolean) =>
- cb(err, isMatch));
+ bcrypt.compare(candidatePassword, this.password, cb);
};
userSchema.methods.comparePassword = comparePassword;