diff --git a/public/users/password-recover.php b/public/users/password-recover.php index 32d55e55..434445fa 100644 --- a/public/users/password-recover.php +++ b/public/users/password-recover.php @@ -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) {