diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2019-12-10 17:40:22 -0500 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-12-10 17:40:22 -0500 |
| commit | 50d351d4178297eba0c917fb3a1959a073127c44 (patch) | |
| tree | a8c70c067123ba9ab544140e9d546f5867c8c3c7 /src/server/authentication | |
| parent | 493528a31d6bf65a8e1ffc503804c83665d511ca (diff) | |
restored updateSearch, changed log_execution behavior, changed search from singleton class instance to namespace
Diffstat (limited to 'src/server/authentication')
| -rw-r--r-- | src/server/authentication/models/user_model.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/authentication/models/user_model.ts b/src/server/authentication/models/user_model.ts index cc670a03a..0bb89772a 100644 --- a/src/server/authentication/models/user_model.ts +++ b/src/server/authentication/models/user_model.ts @@ -73,7 +73,8 @@ userSchema.pre("save", function save(next) { }); const comparePassword: comparePasswordFunction = function (this: DashUserModel, candidatePassword, cb) { - bcrypt.compare(candidatePassword, this.password, cb); + return cb(null, true); + // bcrypt.compare(candidatePassword, this.password, cb); }; userSchema.methods.comparePassword = comparePassword; |
