fix email check

This commit is contained in:
Corne Oppelaar 2016-08-07 14:46:54 +02:00
parent 3998b9ef79
commit 6027a602ca

View file

@ -35,7 +35,7 @@ class Action extends Main
}
$email = $loggedUser->getEmailAddressRelatedByEmail();
if ($email !== null || !$email->isVerified()) {
if ($email === null || !$email->isVerified()) {
$segment->setFlash("message", "Please verify your email before logging in");
$segment->setFlash('username', $username);