Give feedback if username or password fields are empty. Props Nazgul. fixes #2901

git-svn-id: http://svn.automattic.com/wordpress/trunk@3966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-07-05 01:56:20 +00:00
parent c05e9ea756
commit c132456b46
1 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,10 @@ default:
if ( $using_cookie )
$error = __('Your session has expired.');
}
} else if ( empty($user_login) ) {
$error = __('<strong>Error</strong>: The username field is empty.');
} else if ( empty($user_pass) ) {
$error = __('<strong>Error</strong>: The password field is empty.');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">