mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-07-28 21:59:50 +00:00
finalisation de ma part :)
This commit is contained in:
@ -19,7 +19,6 @@ class LoginController extends Controller {
|
||||
$user = Author::getByUsername($_POST["username"]);
|
||||
if($user->checkPassword($_POST["password"])) {
|
||||
$_SESSION["author"] = $user;
|
||||
if(isset($_GET["redirect"])) header("Location: " . $_GET["redirect"]);
|
||||
header("Location: /");
|
||||
}
|
||||
else var_dump("login incorreect");
|
||||
|
Reference in New Issue
Block a user