From ac17b236ed3e81aee796c523cfb00ad01e52b454 Mon Sep 17 00:00:00 2001 From: isaack <isaack0815@gmail.com> Date: Sat, 2 Dec 2017 21:49:07 +0100 Subject: [PATCH] update --- content/konto/userprofil.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/konto/userprofil.php b/content/konto/userprofil.php index bfd6bbd..825522b 100644 --- a/content/konto/userprofil.php +++ b/content/konto/userprofil.php @@ -40,7 +40,8 @@ if ($_POST['aendern'] == 'Jetzt ändern!') { if ($_POST['pwd'] && $_POST['pwd2']) { if ($_POST['pwd'] == $_POST['pwd2']) { if (strlen($_POST['pwd']) >= 8) { - db_query("UPDATE " . $db_prefix . "_kontodaten SET passwort = '" . md5($_POST['pwd']) . "' WHERE uid=" . $_SESSION['uid'] . ""); + $pw = pw_erstellen($_POST['pwd']); + db_query("UPDATE " . $db_prefix . "_kontodaten SET passwort = '" . $pw . "' WHERE uid=" . $_SESSION['uid'] . ""); echo '<meta http-equiv="refresh" content="0; URL=http://' . $_SERVER['HTTP_HOST'] . '/?content=/intern/startseite&logout=true">'; // $change .= 'Das Passwort wurde geändert!<br><b><font color="#FF0000">Bitte logge Dich jetzt aus und wieder neu ein!</font></b><br>'; } else { -- GitLab