Fix Registration
This commit is contained in:
@@ -1327,13 +1327,13 @@ UserSchema.statics.findByEmail = function (idapp, email, onlyifVerifiedByAportad
|
||||
'email': email,
|
||||
$or: [{ deleted: { $exists: false } }, { deleted: { $exists: true, $eq: false } }],
|
||||
}).then((rec) => {
|
||||
if (rec && onlyifVerifiedByAportador) {
|
||||
/* if (rec && onlyifVerifiedByAportador) {
|
||||
if (tools.getAskToVerifyReg(idapp)) {
|
||||
if (!rec.verified_by_aportador)
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
return rec;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user