Browse Source

Password encryption error

Update the password encryption error during the merge was lost password === user_pass
pull/85/head
Black_Codec 11 years ago
parent
commit
5177847800
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      system/admin/admin.php

+ 1
- 1
system/admin/admin.php View File

@ -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');
}


Loading…
Cancel
Save