Skip to content

Commit 11855c4

Browse files
committed
fix: use password_hash instead of unsalted SHA-256 for password storage
Signed-off-by: tranquac <tranquac@users.noreply.github.com>
1 parent d28f604 commit 11855c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

install/contorl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
if (isset($_POST['password'])) {
99
if ($_POST['password'] === $_POST['repassword']) {
1010

11-
$config['password'] = hash('sha256', $_POST['password']);
11+
$config['password'] = password_hash($_POST['password'], PASSWORD_DEFAULT);
1212
$config['user'] = $_POST['user'];
1313
} else {
1414

0 commit comments

Comments
 (0)