diff --git a/sites/all/modules/contrib/bakery/bakery.module b/sites/all/modules/contrib/bakery/bakery.module index 2df4c9d..5cead8d 100644 --- a/sites/all/modules/contrib/bakery/bakery.module +++ b/sites/all/modules/contrib/bakery/bakery.module @@ -1059,7 +1059,7 @@ function _bakery_taste_chocolatechip_cookie() { } } - if ($account && $user->uid == 0) { + if ($account && $account->status && $user->uid == 0) { // If the login attempt fails we need to destroy the cookie to prevent // infinite redirects (with infinite failed login messages). $login = bakery_user_external_login($account);