Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Sep 3, 2023
1 parent b397e37 commit 2786a23
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/lib/MRBS/Auth/AuthPop3.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public function validateUser(
{
global $pop3_host, $pop3_port;

$match = array();
$shared_secret = '';
$all_pop3_hosts = array();
$all_pop3_ports = array();

Expand Down Expand Up @@ -114,7 +112,7 @@ public function validateUser(
}

// If we have a shared secret then try APOP
if ($shared_secret)
if (isset($shared_secret) && ($shared_secret !== ''))
{
$md5_token = md5("$shared_secret$pass");
$auth_string = "APOP $user $md5_token\r\n";
Expand Down

0 comments on commit 2786a23

Please sign in to comment.