diff --git a/TODO.md b/TODO.md index 0a0ed84..ea24bb7 100644 --- a/TODO.md +++ b/TODO.md @@ -18,5 +18,6 @@ - Relative time - Bugs: - - Login redirection is broken + - ~~Login redirection is broken~~ - Check that the user exists before keeping being logged like it + - Registration should ask for password two times diff --git a/login.php b/login.php index 5d7bb68..a294b51 100644 --- a/login.php +++ b/login.php @@ -10,7 +10,6 @@ if(isset($_POST["log"])){ $user = $_POST["logname"]; $shadow = $db->querySingle("SELECT shadow FROM users WHERE username = '$user'"); if(password_verify($_POST["password"],$shadow)){ - echo("Logged in"); $_SESSION["login"] = true; $_SESSION["uid"] = $db->querySingle("SELECT id FROM users WHERE username = '$user'"); header("Location: /"); die();