diff -r c72d6d51f3d3 -r c255196bc447 change_password.php --- a/change_password.php Wed Mar 12 20:45:56 2008 +0000 +++ b/change_password.php Tue Mar 25 22:45:31 2008 +0000 @@ -20,45 +20,35 @@ */ require_once("inc/toolkit.inc.php"); +include_once("inc/header.inc.php"); -if(isset($_POST["submit"])) -{ - if((!isset($_POST['newpass'])) || (strlen($_POST["newpass"]) < 8)) - { - error('Password length should be at least 8 characters.'); - } - else - { - change_user_pass($_POST["currentpass"], $_POST["newpass"], $_POST["newpass2"]); - } +if($_POST["submit"]) { + change_user_pass($_POST); } -include_once("inc/header.inc.php"); -?> -
- +echo "