From db4aecd23c9152a0673b7a70312fb232bc617f2d Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 12 Feb 2019 13:29:18 +0000 Subject: [PATCH] typo fix --- public/users/password-recover.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {