Skip to content

Commit

Permalink
update protected pages to exclude user login page
Browse files Browse the repository at this point in the history
  • Loading branch information
auxonic committed Mar 1, 2023
1 parent b5cc3b9 commit 43b1fc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function sendAccessDenied($pid) {
public function protectedPagesIsPageLocked(string $current_path, string $normal_path) {
$pid = NULL;

if (in_array($current_path, ['/protected-page', '/user'])) {
if (in_array($current_path, ['/protected-page', '/user', '/user/login'])) {
// Pages never to protect
return;
}
Expand Down

0 comments on commit 43b1fc6

Please sign in to comment.