Hello @ all,
I am trying to check a users input on the register process:
if($input->post->email){
$em = $sanitizer->email($input->post->email);
var_dump($validMail, $checkMail->count, $em);
echo "<br>--------------<br>";
$checkMail = $wire->pages->find("template=user, email=$em");
if($checkMail->count !== 0){
$validMail = 0;
} else {
$validMail = 1;
}
}
int(1) int(0) and some mailstring is returned in the var_dump below this code, as the mail address is in the DB, it should return int(0) int (1) for valid email = 0;
Can anyone assist me please?
Thank you in advance!