From fa96f3aea8a38ce436c6cd44cd6e6725fee2edea Mon Sep 17 00:00:00 2001 From: Larry Adams Date: Mon, 25 Jun 2007 16:46:43 +0000 Subject: [PATCH] simple cleanup. git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3993 860744bd-22fc-0310-8c96-e9fe5004b5ca --- auth_changepassword.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/auth_changepassword.php b/auth_changepassword.php index 381ba93bd..ace6be0c0 100644 --- a/auth_changepassword.php +++ b/auth_changepassword.php @@ -37,9 +37,9 @@ case 'changepassword': if (($_POST["password"] == $_POST["confirm"]) && ($_POST["password"] != "")) { db_execute("insert into user_log (username,result,ip) values('" . $user["username"] . "',3,'" . $_SERVER["REMOTE_ADDR"] . "')"); db_execute("update user_auth set must_change_password='',password='" . md5($_POST["password"]) . "' where id=" . $_SESSION["sess_user_id"]); - + kill_session_var("sess_change_password"); - + /* ok, at the point the user has been sucessfully authenticated; so we must decide what to do next */ @@ -56,14 +56,14 @@ case 'changepassword': header("Location: graph_view.php"); break; } }else{ - header("Location: graph_view.php"); + header("Location: graph_view.php"); } exit; }else{ $bad_password = true; } - + break; } ?> @@ -71,7 +71,7 @@ case 'changepassword': Login to cacti