remove console log
This commit is contained in:
1 parent
54d3392cf1
commit
927e8a88b8
1 file changed
-2
@@ -50,14 +50,12 @@ class RecoveryModule {
|
|||||||
const user = await this.User.findOne({ email: recoveryToken.email });
|
const user = await this.User.findOne({ email: recoveryToken.email });
|
||||||
|
|
||||||
if (user === null) {
|
if (user === null) {
|
||||||
console.log("WTF2");
|
|
||||||
throw new Error(this.stringService.dbUserNotFound);
|
throw new Error(this.stringService.dbUserNotFound);
|
||||||
}
|
}
|
||||||
|
|
||||||
const match = await user.comparePassword(newPassword);
|
const match = await user.comparePassword(newPassword);
|
||||||
|
|
||||||
if (match === true) {
|
if (match === true) {
|
||||||
console.log("WTF");
|
|
||||||
throw new Error("Password cannot be the same as the old password");
|
throw new Error("Password cannot be the same as the old password");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user