Skip to content

Commit 3dc9148

Browse files
authored
Merge pull request #268 from tranquac/fix/weak-password-hashing
fix: use password_hash instead of unsalted SHA-256 for password storage
2 parents c4a2572 + 11855c4 commit 3dc9148

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)