示例#1
0
    </hgroup>
</header>

<main>

    <section>
        <div class="section-padding align-centre lgrey">
            <?php 
require_once 'php/LoginSystem.php';
$loginSystem = new LoginSystem();
if ($_POST) {
    $email = $_POST['email'];
    if (!empty($email)) {
        $exists = $loginSystem->checkUserExists($email, '');
        if ($exists) {
            $response = $loginSystem->sendResetPasswordLink($email);
            echo $response;
        } else {
            echo '<p class="full warn"><i class="ico-warning"></i>No account with this email exists.</p>';
        }
    } else {
        echo '<p class="full warn"><i class="ico-warning"></i>Please enter your email.</p>';
    }
}
?>

            <form method="post">
                <table>
                    <tr>
                        <td><label for="email">Email:</label></td>
                        <td><input type="email" name="email" required autofocus/></td>