? .bakery.module.swp
? .git
Index: bakery.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/bakery/bakery.module,v
retrieving revision 1.52.4.16
diff -u -F '^f' -r1.52.4.16 bakery.module
--- bakery.module	7 Dec 2010 00:38:01 -0000	1.52.4.16
+++ bakery.module	20 Jan 2011 02:12:41 -0000
@@ -1136,6 +1136,9 @@ function bakery_request_account($name, $
   global $base_url;
 
   $existing_account = user_load(array('name' => $name));
+  if (!$existing_account && $or_email) {
+    $existing_account = user_load(array('mail' => $name));
+  }
   // We return FALSE in cases that the account already exists locally or if
   // there was an error along the way of requesting and creating it.
   if ($existing_account) {
