Skip to content

Commit

Permalink
Fix comment error in user Auth.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DidierViret committed Dec 19, 2023
1 parent 0cb0834 commit a657575
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion orif/user/Controllers/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public function azure_login() {

public function login(): string|Response
{
// If user is not already logged
// If user not yet logged in
if(!(isset($_SESSION['logged_in']) && $_SESSION['logged_in'] == true)) {

// Store the redirection URL in a session variable
Expand Down Expand Up @@ -435,6 +435,8 @@ public function login(): string|Response
//Display login page
$output = array('title' => lang('user_lang.title_page_login'));
return $this->display_view('\User\auth\login', $output);

// If user already logged in
} else {
return redirect()->to(base_url());
}
Expand Down

0 comments on commit a657575

Please sign in to comment.