diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-16 00:08:23 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-16 00:08:23 -0400 |
commit | 5782ae7c2bcbdf0026387ba4ac1fcba273930c1c (patch) | |
tree | 5532ed3286a72dcc804b4e6c974f7b2fc688c3c3 /src/server/authentication/models/user_model.ts | |
parent | 67015ac6e2bf46457570797c80bfc1c03203bd8b (diff) |
Changed config stuff to make compilation faster
Fixed linter errors
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; |