Skip to content

Commit 42b19f3

Browse files
committed
remove console error, simply return 'false'
1 parent a65572b commit 42b19f3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server/models/user.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ userSchema.methods.comparePassword = async function comparePassword(
163163
candidatePassword
164164
) {
165165
if (!this.password) {
166-
console.error('No password is set for this user.');
167166
return false;
168167
}
169168

0 commit comments

Comments
 (0)