2010-12-09, 05:24 PM
It'll only do that if the username/user you're using isn't in the database.
Are you sure your dropped the tables and imported the backup?? The username you're using isn't in the database.
if(!username_exists($mybb->input['username']))
{
$output->print_error("The username you have entered appears to be invalid.");
}
$query = $db->simple_select("users", "uid,username,password,salt,loginkey", "username='".$db->escape_string($mybb->input['username'])."'", array('limit' => 1));
$user = $db->fetch_array($query);
if(!$user['uid'])
{
$output->print_error("The username you have entered appears to be invalid.");
}
Are you sure your dropped the tables and imported the backup?? The username you're using isn't in the database.