prepare($sql); $stm->execute([ ':email' => strip_tags($_REQUEST["email"]), ':password' => strip_tags($_REQUEST["password"]), ]); $user = $stm->fetch(); /** * If such user exists, create a temporary session (i.e. log the user in) and redirect to the Home page with the appropriate message. */ if ($user) { $_SESSION['is_reviewer'] = true; $_SESSION['reviewer_id'] = $user['reviewer_id']; $_SESSION['reviewer_name'] = $user['reviewer_name']; header('Location: /?msg=logged_in'); exit; } else { /** * If the credentials are not correct, still render the login form, but display an error message. For increased security, do not inform the user whether the email or password is incorrect. */ $err = 'The provided credentials are incorrect.'; } } $pageTitle = 'Sign in'; $pageSlug = 'login'; require_once('./inc/head.php'); require_once('./inc/header.php'); ?>

" aria-describedby="emailHelp" required>
Enter your email address.