make a few more check before a password get's changed
authorArun Persaud <arun@nubati.net>
Thu, 25 Jun 2009 04:36:07 +0000 (21:36 -0700)
committerArun Persaud <arun@nubati.net>
Thu, 25 Jun 2009 04:36:07 +0000 (21:36 -0700)
don't do anything, if password0 and password1 are the same

include/preferences.php

index 8b3937dba84c7d2d2ddbae553ec0279b0154bd83..2e3eef2fbf53ba6c771db53747d619d4454d398c 100644 (file)
@@ -246,7 +246,7 @@ if(myisset("open_for_games"))
   }
 
 
-if(myisset("password0") &&  $_REQUEST["password0"]!="" )
+if(myisset("password0","password1","password2") &&  $_REQUEST["password0"]!="" &&  $_REQUEST["password0"]!= $_REQUEST["password1"])
   {
     $changed_password = 1;