From 57911a719fafd67b18cf789a49428d4c4a2736a2 Mon Sep 17 00:00:00 2001 From: Kanti Date: Tue, 26 Aug 2014 07:06:21 +0200 Subject: [PATCH] Password encryption error Update the password encryption error during the merge was lost password === user_pass --- system/admin/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {