Well, i'm not expert in this area... But i did a little code to verify if email is already registered... Isn't a GREAT fix, but... :)
1° Go to private/application/library and open the class.user.php, then search for this public function user_name($username), then add this after void founded:
PHP Code:
public function user_mail($username)
{
GLOBAL $db;
$query = ('SELECT mail FROM users WHERE mail = ? LIMIT 1');
if ($statement = $db->prepare($query))
{
$statement->bind_param('s', $username);
$statement->execute();
$statement->bind_result($username);
$statement->fetch();
$statement->close();
return ($username);
}
}
2° Go to private/application/theme/public and open the login.php, then search for this:
PHP Code:
else if ($usr->user_name($_POST['reg_username']))
{
$errors[] = 'Please enter an username that does not already exist.';
}
After of found, add this:
PHP Code:
else if ($usr->user_mail($_POST['reg_email']))
{
$errors[] = 'Please enter an email that does not already exist.';
}
Now you will have a verification of email!
If have something wrong with code, tell me, i'm new in PHP :p