mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-07-28 13:49:50 +00:00
pouet mise a jour pouet
This commit is contained in:
@ -17,7 +17,6 @@ class LoginController extends Controller {
|
||||
|
||||
if(isset($_POST["username"]) && isset($_POST["password"])) {
|
||||
$user = Author::getByUsername($_POST["username"]);
|
||||
var_dump($user);
|
||||
if($user->checkPassword($_POST["password"])) {
|
||||
$_SESSION["author"] = $user;
|
||||
if(isset($_GET["redirect"])) header("Location: " . $_GET["redirect"]);
|
||||
|
Reference in New Issue
Block a user