src/Observer/Controller/Admin/Postdispatch.php 1 location
|
@@ 134-147 (lines=14) @@
|
| 131 |
|
return true; |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
private function areWeOnANonRedirectingPage() |
| 135 |
|
{ |
| 136 |
|
$urls = $this->twoFactorUrls; |
| 137 |
|
|
| 138 |
|
if ($urls->areWeOnTheAuthenticationPage(true) === true) { |
| 139 |
|
return true; |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
if ($urls->areWeOnTheVerificationPage(true) === true) { |
| 143 |
|
return true; |
| 144 |
|
} |
| 145 |
|
|
| 146 |
|
return false; |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
private function redirectToAuthenticationPage(Action $controller) |
| 150 |
|
{ |
src/Observer/Controller/Frontend/Postdispatch.php 1 location
|
@@ 149-161 (lines=13) @@
|
| 146 |
|
return true; |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
private function areWeOnAnAllowedPage() |
| 150 |
|
{ |
| 151 |
|
$twoFactorUrls = $this->twoFactorUrls; |
| 152 |
|
if ($twoFactorUrls->areWeOnTheAuthenticationPage(false) === true) { |
| 153 |
|
return true; |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
if ($twoFactorUrls->areWeOnTheVerificationPage(false) === true) { |
| 157 |
|
return true; |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
return false; |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
private function hasTwoFactorBeenChecked() |
| 164 |
|
{ |