mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
phpcs fix
This commit is contained in:
1 parent
ed99a46ec4
commit
730a05cdd3
1 file changed
+2
-5
@@ -68,7 +68,6 @@ if ($_SERVER['REQUEST_METHOD'] === "POST") {
|
||||
$handler = $context === 'admin' ? new AdminHandler : new MailboxHandler;
|
||||
$token = $handler->getPasswordRecoveryCode($tUsername);
|
||||
if ($token !== false) {
|
||||
|
||||
$table = table_by_key($context === 'users' ? 'mailbox' : 'admin');
|
||||
$row = db_query_one("SELECT * FROM $table WHERE username= :username", array('username' => $username));
|
||||
|
||||
@@ -79,11 +78,9 @@ if ($_SERVER['REQUEST_METHOD'] === "POST") {
|
||||
|
||||
if ($email_other) {
|
||||
sendCodeByEmail($email_other, $tUsername, $token);
|
||||
}
|
||||
elseif ($phone) {
|
||||
} elseif ($phone) {
|
||||
sendCodeBySMS($phone, $tUsername, $token);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
error_log(__FILE__ . " - No mechanism configured for password-recovery.");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user