Skip to content

Commit 12cf94d

Browse files
committed
Forget password middleware update for SHA-512 encryption.
1 parent 4b625df commit 12cf94d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

side/forgetpass.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*/
3131

3232
include_once("../controller/db_config.php");
33+
include_once("../controller/hash_helper.php");
3334
include_once("../controller/response.php");
3435
include_once("../controller/tor_detection.php");
3536
include_once("../controller/validator.php");
@@ -89,7 +90,7 @@
8990
freeDBQuery(
9091
mysqli_query(
9192
$db_conn,
92-
"UPDATE accounts SET password=\"".md5($password).
93+
"UPDATE accounts SET password=\"".hashString($password).
9394
"\" WHERE email=\"".$email."\""
9495
)
9596
);

0 commit comments

Comments
 (0)