diff --git a/system/admin/admin.php b/system/admin/admin.php index 0bdfb1f..f017aba 100644 --- a/system/admin/admin.php +++ b/system/admin/admin.php @@ -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 {