#124 fixed error with not confirmed email

This commit is contained in:
Ulf Gebhardt 2016-12-14 22:34:13 +01:00
parent fd9db1e65c
commit 045e19d44b

View File

@ -13,6 +13,7 @@ class account_tbc implements \SYSTEM\PAGE\Page {
return \SYSTEM\PAGE\replace::replaceFile((new PPAGE('account_login/tpl/account_login.tpl'))->SERVERPATH(), $vars);}
$vars['email'] = \SYSTEM\SECURITY\security::getUser()->email;
$vars['username'] = \SYSTEM\SECURITY\security::getUser()->username;
$vars['wow_accounts'] = '';
$res = \SYSTEM\SECURITY\security::getUser()->email_confirmed ? \SQL\MOJO_ACCOUNT_ACCOUNTS::QQ(array($vars['email'])) : \SQL\MOJO_ACCOUNT_MAIN_ACCOUNT::QQ(array($vars['username'],$vars['email']));
while($row = $res->next()){