Store password as hash
Resolves T117
This commit is contained in:
parent
5e45579ef1
commit
fb937319db
2 changed files with 9 additions and 3 deletions
|
@ -23,8 +23,14 @@ if ($password == "") {
|
|||
exit();
|
||||
}
|
||||
|
||||
$options = [
|
||||
'cost' => 12
|
||||
];
|
||||
|
||||
$password = password_hash($password, PASSWORD_BCRYPT, $options);
|
||||
|
||||
$username = '$username = "' . $username . '";';
|
||||
$password = '$password = "' . $password . '";';
|
||||
$password = '$password = \'' . $password . '\';';
|
||||
|
||||
$file = '<?php' . "\n" . $username . "\n" . $password . "\n";
|
||||
|
||||
|
|
Reference in a new issue