Hamarhu,
I'm no expert but you haven't started a session
@session_start();
if (password_verify($inputpassword, $storedpassword)) {
$_SESSION['auth_trigger'] = "passed";
} else {
$_SESSION['auth_trigger'] = "failed";
}
You also call this function with a check on whether the username or password is set with if (isset($_POST["passf"]) || isset($_POST["uname"])) {
Where as I use the submit button on the form to run this code if (isset($_POST["submit"]) || isset($_POST["submit_x"])) {
make sure the form is referencing this page <form name="login" method="post" action="index.php">
and that the submit button has the name="submit" in it. <input type="submit" value="SUBMIT" name="submit">
Let me know if any of this helps.


