mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-09 14:02:54 +09:00
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
This commit is contained in:
1 parent
fc02bf288b
commit
fa96f3aea8
1 file changed
+5
-5
@@ -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':
|
||||
<head>
|
||||
<title>Login to cacti</title>
|
||||
<STYLE TYPE="text/css">
|
||||
<!--
|
||||
<!--
|
||||
BODY, TABLE, TR, TD {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}
|
||||
A {text-decoration: none;}
|
||||
A:active { text-decoration: none;}
|
||||
|
||||
Reference in new issue
Block a user