From 993fc6fffd6c43498c756ef73f8fd27eb4fadce1 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Wed, 24 Jun 2009 21:36:07 -0700 Subject: [PATCH] make a few more check before a password get's changed don't do anything, if password0 and password1 are the same --- include/preferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1