When using this code in 4.1.8, if you try and login using an email address you get the following error message:
"Your account is temporarily disabled. Please contact the store administrator for details."
Code:
$user_data=func_query_first("select * from $sql_tbl[customers] where (login='$username' or email='$username') and usertype='$usertype' and status='Y'");
Anyone else had this problem and how did you fix it?