From: Arun Persaud Date: Thu, 25 Jun 2009 04:36:07 +0000 (-0700) Subject: make a few more check before a password get's changed X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=993fc6fffd6c43498c756ef73f8fd27eb4fadce1;ds=sidebyside make a few more check before a password get's changed don't do anything, if password0 and password1 are the same --- diff --git a/include/preferences.php b/include/preferences.php index 8b3937d..2e3eef2 100644 --- a/include/preferences.php +++ b/include/preferences.php @@ -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;