Skip to content

Commit

Permalink
fix: LMSDEV-5433 added firstaccess check instead of primary diplomado
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrequena committed Sep 29, 2023
2 parents ca3523d + a08d078 commit b8dc37c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public function user_login_userkey() {
}

$user = get_complete_user_data('id', $key->userid);

complete_user_login($user);

// Identify this session as using user key auth method.
Expand All @@ -194,7 +195,7 @@ public function user_login_userkey() {
*/

public function redirect_to_onboarding($user, $keyvalue) {
global $CFG, $SESSION;
global $CFG, $SESSION, $USER;
require_once($CFG->dirroot . "/login/lib.php");

if (!empty($this->config->onboardingurl)) {
Expand Down

0 comments on commit b8dc37c

Please sign in to comment.