Fix Registration
This commit is contained in:
@@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user