Skip to content

Commit

Permalink
Update dispatcher.php
Browse files Browse the repository at this point in the history
As requested in #23873 (comment)
  • Loading branch information
jeckodevelopment committed Feb 11, 2019
1 parent 646091f commit a5185fe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions libraries/fof/dispatcher/dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,22 +522,22 @@ public function transparentAuthentication()

if (empty($this->fofAuth_Key))
{
continue;
continue 2;
}

if (!isset($_SERVER['PHP_AUTH_USER']))
{
continue;
continue 2;
}

if (!isset($_SERVER['PHP_AUTH_PW']))
{
continue;
continue 2;
}

if ($_SERVER['PHP_AUTH_USER'] != '_fof_auth')
{
continue;
continue 2;
}

$encryptedData = $_SERVER['PHP_AUTH_PW'];
Expand All @@ -550,7 +550,7 @@ public function transparentAuthentication()

if (empty($encryptedData))
{
continue;
continue 2;
}

$authInfo = $this->_decryptWithTOTP($encryptedData);
Expand All @@ -559,12 +559,12 @@ public function transparentAuthentication()
case 'HTTPBasicAuth_Plaintext':
if (!isset($_SERVER['PHP_AUTH_USER']))
{
continue;
continue 2;
}

if (!isset($_SERVER['PHP_AUTH_PW']))
{
continue;
continue 2;
}

$authInfo = array(
Expand All @@ -578,7 +578,7 @@ public function transparentAuthentication()

if (empty($jsonencoded))
{
continue;
continue 2;
}

$authInfo = json_decode($jsonencoded, true);
Expand Down Expand Up @@ -607,7 +607,7 @@ public function transparentAuthentication()
break;

default:
continue;
continue 2;

break;
}
Expand Down

0 comments on commit a5185fe

Please sign in to comment.