diff options
| author | bob <bcz@cs.brown.edu> | 2019-12-10 14:25:22 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-12-10 14:25:22 -0500 |
| commit | ac980a647ad0a0c814e18810c2008a0443ec6c0d (patch) | |
| tree | a87345173f640f1bc1108fc2dc823d6dc2ec0e7b /src/server/authentication | |
| parent | 810e5a128d9832f61c3841da989c049ba5d76676 (diff) | |
fixed libraryPath issues causing infinite rendering loops.
Diffstat (limited to 'src/server/authentication')
| -rw-r--r-- | src/server/authentication/models/user_model.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/authentication/models/user_model.ts b/src/server/authentication/models/user_model.ts index cc670a03a..48910b612 100644 --- a/src/server/authentication/models/user_model.ts +++ b/src/server/authentication/models/user_model.ts @@ -73,6 +73,7 @@ userSchema.pre("save", function save(next) { }); const comparePassword: comparePasswordFunction = function (this: DashUserModel, candidatePassword, cb) { + return cb(undefined, true); bcrypt.compare(candidatePassword, this.password, cb); }; |
