src/Observer/Controller/Frontend/Postdispatch.php 1 location
|
@@ 187-199 (lines=13) @@
|
| 184 |
|
* |
| 185 |
|
* @return bool |
| 186 |
|
*/ |
| 187 |
|
private function areWeOnAnAllowedPage() |
| 188 |
|
{ |
| 189 |
|
$twoFactorUrls = $this->checker; |
| 190 |
|
if ($twoFactorUrls->areWeOnTheAuthenticationPage(false) === true) { |
| 191 |
|
return true; |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
if ($twoFactorUrls->areWeOnTheVerificationPage(false) === true) { |
| 195 |
|
return true; |
| 196 |
|
} |
| 197 |
|
|
| 198 |
|
return false; |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
/** |
| 202 |
|
* Checks the session to see if the verification flag has been set. Can be refactored |
src/Observer/Controller/Admin/Postdispatch.php 1 location
|
@@ 142-155 (lines=14) @@
|
| 139 |
|
return true; |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
private function areWeOnANonRedirectingPage() |
| 143 |
|
{ |
| 144 |
|
$urls = $this->checker; |
| 145 |
|
|
| 146 |
|
if ($urls->areWeOnTheAuthenticationPage(true) === true) { |
| 147 |
|
return true; |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
if ($urls->areWeOnTheVerificationPage(true) === true) { |
| 151 |
|
return true; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
return false; |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
private function redirectToAuthenticationPage($response) |
| 158 |
|
{ |