<main> <section> <div class="section-padding align-centre lgrey"> <?php if (!isset($_GET['e']) || !isset($_GET['r'])) { header('location: /'); } require_once 'php/LoginSystem.php'; $loginSystem = new LoginSystem(); if ($_POST) { $email = $_GET['e']; $rand = $_GET['r']; $password = $_POST['password']; if (!empty($password)) { $response = $loginSystem->resetPassword($email, $password, $rand); echo $response; } else { echo '<p class="full warn"><i class="ico-warning"></i>Please enter your new password.</a>'; } } ?> <form method="post" class="half-padding"> <table> <tr> <td><label for="password">Password:</label></td> <td><input type="password" name="password" required autofocus/></td> </tr> <tr>