mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +05:30
Password encryption error
Update the password encryption error during the merge was lost password === user_pass
This commit is contained in:
parent
f25844b580
commit
57911a719f
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ function session($user, $pass, $str = null) {
|
|||
$password = (strlen($user_enc) > 0 && $user_enc !== 'clear' && $user_enc !== 'none') ? hash($user_enc, $pass) : $pass;
|
||||
|
||||
if (file_exists($user_file)) {
|
||||
if ($pass === $user_pass) {
|
||||
if ($password === $user_pass) {
|
||||
$_SESSION[config("site.url")]['user'] = $user;
|
||||
header('location: admin');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue