<p><a onclick="document.getElementById('mailpass').removeAttribute('hidden'); this.remove()">Wachtwoord vergeten?</a></p>
<?php } ?>
-<form id="mailpass" action="/login/mailpass" method="post"<?php if (!isset($_POST['mail'])) { ?> hidden<?php } ?>>
+<form id="mailpass" action="" method="post"<?php if (!isset($_POST['mail'])) { ?> hidden<?php } ?>>
<h3>Wachtwoord vergeten</h3>
<p>Als er een e-mailadres was ingesteld kun je hieronder een verzoek indienen om opnieuw een wachtwoord in te stellen.</p>
<input type="email" id="mail" name="mail" placeholder="E-mailadres" value="<?php
<?php
function userbymail($email)
{
+ $email = strtolower($email);
foreach (glob("profile/*") as $useropt) {
if ($mailopt = @file_get_contents("$useropt/email.txt")
- and rtrim($mailopt) == $email) {
+ and strtolower(rtrim($mailopt)) == $email) {
return substr($useropt, strlen('profile/'));
}
}