Skip to content

Commit

Permalink
New branch azure_new_user_form
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovsiankina committed Apr 19, 2024
1 parent 0acdfde commit d7274de
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions orif/user/Controllers/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ public function login(): string|Response {
// Check if microsoft login button submitted, else, display login page
} else if (!is_null($this->request->getPost('btn_login_microsoft'))) {
$this->azure_login();
//exit();
}
//Display login page
$output = array('title' => lang('user_lang.title_page_login'));
Expand Down Expand Up @@ -407,7 +406,7 @@ public function verify_verification_code() {

// TODO: Afficher formulaire creation user avec infos pré-remplies (save_user)
// TODO : Route differente, remplacer after_login_redirect

} else {

// User already in DB => Update azure_mail in DB
Expand Down Expand Up @@ -449,10 +448,8 @@ public function verify_verification_code() {
);
}
}

// todo redirect to reset sessions method
// In all cases, go to reset_session
return $this->reset_session();

}

public function register_user() {
Expand Down Expand Up @@ -508,7 +505,6 @@ public function reset_session() {

// Send the user to the redirection URL
return redirect()->to($_SESSION['after_login_redirect']);
// return redirect()->to('/user/profile/test');
}

function errorhandler($data) {
Expand Down

0 comments on commit d7274de

Please sign in to comment.