mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-08 21:16:17 +09:00
using php md5 instead of mysql password()
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@581 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
1 parent
0896a54a55
commit
a1890fb94d
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -103,7 +103,7 @@ function form_save() {
|
||||
if (($_POST["password"] == "") && ($_POST["password_confirm"] == "")) {
|
||||
$password = db_fetch_cell("select password from user where id=" . $_POST["id"]);
|
||||
}else{
|
||||
$password = "PASSWORD('" . $_POST["password"] . "')";
|
||||
$password = "'" . md5($_POST["password"]) . "'";
|
||||
}
|
||||
|
||||
/* check to make sure the passwords match; if not error */
|
||||
|
||||
Reference in new issue
Block a user