Browse Source

Update admin.php

pull/674/head
danpros 1 year ago
parent
commit
08cdaefc05
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      system/admin/admin.php

+ 4
- 0
system/admin/admin.php View File

@ -54,6 +54,10 @@ function session($user, $pass)
$user_enc = user('encryption', $user);
$user_pass = user('password', $user);
$user_role = user('role', $user);
if(is_null($user_enc) || is_null($user_pass) || is_null($user_role)) {
return $str = '<div class="error-message"><ul><li class="alert alert-danger">' . i18n('Invalid_Error') . '</li></ul></div>';
}
if ($user_enc == "password_hash") {
if (password_verify($pass, $user_pass)) {


Loading…
Cancel
Save