Tiny patch about loging in PHP

Rafal Maj rafal at raf256.com
Sat Feb 4 03:19:43 CST 2006


to apply to
http://cvs.winehq.org/cvsweb/~checkout~/appdb/account.php?rev=1.13&content-type=text/plain

to clearyfie that appdb. and bugs. are SEPARATED accounts, since it
might confuse newbies

-------------- next part --------------
--- old/account.php	2006-02-04 10:17:33.000000000 +0100
+++ new/account.php	2006-02-04 10:18:12.000000000 +0100
@@ -126,6 +126,9 @@
 function cmd_send_passwd()
 {
    
+		$note = '(<b>Note</b>: accounts for <b>appdb</b>.winehq.org and <b>bugs</b>.winehq.org '
+		.'are separated, so You might need to <b>create second</b> account for appdb.)';
+		
     $userid = user_exists($_POST['ext_email']);
     $passwd = generate_passwd();
     $user = new User($userid);
@@ -156,7 +159,8 @@
     }
     else
     {
-        addmsg("Sorry, that user (". urlencode($_POST['ext_email']) .") does not exist.", "red");
+        addmsg("Sorry, that user (". urlencode($_POST['ext_email']) .") does not exist. "
+        .$note, "red");
     }
     
     redirect(apidb_fullurl("account.php?cmd=login"));
@@ -177,7 +181,7 @@
         redirect(apidb_fullurl("index.php"));    	    
     } else
     {
-        retry("login","Login failed");
+        retry("login","Login failed ".$note);
         $_SESSION['current'] = "";
     }
 }


More information about the wine-patches mailing list