diff options
author | Fawn <fangrui_tong@brown.edu> | 2019-04-22 00:09:25 -0400 |
---|---|---|
committer | Fawn <fangrui_tong@brown.edu> | 2019-04-22 00:09:25 -0400 |
commit | 97dcec0e5ac07deb9af9acb16948cc6678778cba (patch) | |
tree | 74dd3d2bd938a5ab5b3bb082a8fc2846eefa5999 /src/server/authentication/models/user_model.ts | |
parent | e794b4b38e8ab2f4e7a79f223f9488cc845c724f (diff) | |
parent | b63bcb791013766d5d16e4f38964499268f904c4 (diff) |
merge
Diffstat (limited to 'src/server/authentication/models/user_model.ts')
-rw-r--r-- | src/server/authentication/models/user_model.ts | 3 |
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; |