diff options
author | bob <bcz@cs.brown.edu> | 2019-04-16 12:46:06 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-04-16 12:46:06 -0400 |
commit | a4122573367ef36a9725e09b8447f3edfaa5c6a1 (patch) | |
tree | 76fec7e0f5f964efc0af0957681d63fde309e5cc /src/server/authentication/models/user_model.ts | |
parent | c6360fb4aed348f6f6a3c7412b6acc0d1990c239 (diff) | |
parent | feae8f4d314ef389cc544fd3ad0792a6bb04832c (diff) |
Merge branch 'master' into presentation_view
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; |