diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-04-16 00:37:50 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-04-16 00:37:50 -0400 |
| commit | a14e0a905897222a7cb948119a3238abb6e26e25 (patch) | |
| tree | 6ba6d83518d393e1e1e1d6e3bcba6f46ce377936 /src/server/authentication/models | |
| parent | 13ced657b7a3292e57150bf5e44412d7068b7e3d (diff) | |
| parent | 0c4ceaf7a51fde6e3d1f97ee00b00b4eb1478da6 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/server/authentication/models')
| -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; |
