Prepare release + bugs fix

Prepare release, improvements, and bugs fix  #226
This commit is contained in:
Danang Probo Sayekti 2015-11-14 13:50:47 +07:00
commit d4e6139011
3 changed files with 13 additions and 3 deletions

View file

@ -57,6 +57,8 @@ function session($user, $pass)
}
$_SESSION[config("site.url")]['user'] = $user;
header('location: admin');
} else {
return $str = '<li>Your username and password mismatch.</li>';
}
} else if (old_password_verify($pass, $user_enc, $user_pass)) {
update_user($user, $pass, $user_role);