Fix Registration

This commit is contained in:
Surya Paolo
2022-12-17 14:11:37 +01:00
parent 54ffaa3fa5
commit c07e6f214d

View File

@@ -1327,13 +1327,13 @@ UserSchema.statics.findByEmail = function (idapp, email, onlyifVerifiedByAportad
'email': email, 'email': email,
$or: [{ deleted: { $exists: false } }, { deleted: { $exists: true, $eq: false } }], $or: [{ deleted: { $exists: false } }, { deleted: { $exists: true, $eq: false } }],
}).then((rec) => { }).then((rec) => {
if (rec && onlyifVerifiedByAportador) { /* if (rec && onlyifVerifiedByAportador) {
if (tools.getAskToVerifyReg(idapp)) { if (tools.getAskToVerifyReg(idapp)) {
if (!rec.verified_by_aportador) if (!rec.verified_by_aportador)
return null; return null;
} }
} } */
return rec; return rec;
}); });