summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wp-content/mu-plugins/pluggable.php2
-rw-r--r--wp-login.php3
2 files changed, 5 insertions, 0 deletions
diff --git a/wp-content/mu-plugins/pluggable.php b/wp-content/mu-plugins/pluggable.php
index d6429dc..f1cf497 100644
--- a/wp-content/mu-plugins/pluggable.php
+++ b/wp-content/mu-plugins/pluggable.php
@@ -3,6 +3,8 @@
function wp_login($username, $password, $already_md5 = false) {
global $wpdb, $error, $current_user;
+ $username = strtolower($username);
+
if ( !$username )
return false;
diff --git a/wp-login.php b/wp-login.php
index 8ee6e8a..4b27b47 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -210,6 +210,9 @@ default:
} else if ( $user_login || $user_pass ) {
$error = __('<strong>Error</strong>: The password field is empty.');
}
+
+ if ( ! is_user_logged_in() )
+ wp_clearcookie(); // Start with a clean slate
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">