login: strip logout parameter on form post
[minimedit.git] / login / form.inc.php
1 <h2>Inloggen</h2>
2
3 <form action="?" method="post">
4         <input id="login" name="login" placeholder="Gebruikersnaam" value="<?php
5                 if (isset($_POST['login'])) print htmlspecialchars($_POST['login']);
6         ?>" />
7         <input id="pass" name="pass" type="password" value="" placeholder="Wachtwoord" />
8         <input type="submit" value="Log in" />
9 </form>
10
11 <?php if (!isset($_POST['mail'])) { ?>
12 <p><a onclick="document.getElementById('mailpass').removeAttribute('hidden'); this.remove()">Wachtwoord vergeten?</a></p>
13 <?php } ?>
14
15 <form id="mailpass" action="/login/mailpass" method="post"<?php if (!isset($_POST['mail'])) { ?> hidden<?php } ?>>
16         <h3>Wachtwoord vergeten</h3>
17         <p>Als er een e-mailadres was ingesteld kun je hieronder een verzoek indienen om opnieuw een wachtwoord in te stellen.</p>
18         <input type="email" id="mail" name="mail" placeholder="E-mailadres" value="<?php
19                 if (isset($_POST['mail'])) print htmlspecialchars($_POST['mail']);
20         ?>" />
21         <input type="submit" value="Verstuur" />
22 </form>