pull/248/head
David Goodwin 6 years ago
parent 237f34d38f
commit db4aecd23c

@ -59,13 +59,12 @@ if ($_SERVER['REQUEST_METHOD'] === "POST") {
$start_time = microtime(true);
$username = safepost('fUsername', null);
if (empty($sername) || !is_string($username)) {
if (empty($username) || !is_string($username)) {
die("fUsername field required");
}
$tUsername = escape_string($username);
$handler = $context === 'admin' ? new AdminHandler : new MailboxHandler;
$token = $handler->getPasswordRecoveryCode($tUsername);
if ($token !== false) {

Loading…
Cancel
Save