Index: branches/dev/html/entry/index.php
===================================================================
--- branches/dev/html/entry/index.php	(revision 285)
+++ branches/dev/html/entry/index.php	(revision 290)
@@ -204,9 +204,19 @@
 		}
 		$arrRegist["status"] = "1";				// ²¾²ñ°÷
-		$arrRegist["secret_key"] = $uniqid;		// ²ñ°÷ÅÐÏ¿¥­¡¼
 	} else {
+		// ½ÅÊ£¤·¤Ê¤¤²ñ°÷ÅÐÏ¿¥­¡¼¤òÈ¯¹Ô¤¹¤ë¡£
+		$count = 1;
+		while ($count != 0) {
+			$uniqid = sfGetUniqRandomId("r");
+			$count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid));
+		}
 		$arrRegist["status"] = "2";				// ËÜ²ñ°÷
 	}
 	
+	/*
+	 secret_key¤Ï¡¢¥Æ¡¼¥Ö¥ë¤Ç½ÅÊ£µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤¬¤¢¤ë¤Î¤Ç¡¢
+     ËÜ²ñ°÷ÅÐÏ¿¤Ç¤ÏÍøÍÑ¤µ¤ì¤Ê¤¤¤¬¥»¥Ã¥È¤·¤Æ¤ª¤¯¡£
+    */
+	$arrRegist["secret_key"] = $uniqid;		// ²ñ°÷ÅÐÏ¿¥­¡¼
 	$arrRegist["create_date"] = "now()"; 	// ºîÀ®Æü
 	$arrRegist["update_date"] = "now()"; 	// ¹¹¿·Æü
