Fixed redirection when user not completed yet in some instances when

using external authentication
This commit is contained in:
moodler
2003-01-14 14:54:45 +00:00
parent ac0ac75240
commit 2c104c0152
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -301,11 +301,6 @@ function require_login($courseid=0) {
} else { // just update their last login time
update_user_in_db();
}
if (!$USER->email) { // User logged in, but has not set up profile!
// This can occur with external authentication
redirect("$CFG->wwwroot/user/edit.php?id=$USER->id&course=$courseid");
die;
}
return; // user is a member of this course.
}
if (! $course = get_record("course", "id", $courseid)) {
+1 -1
View File
@@ -15,7 +15,7 @@
error("Course ID was incorrect");
}
if ($user->confirmed and !$user->email) {
if ($user->confirmed and user_not_fully_set_up($user)) {
// Special case which can only occur when a new account
// has just been created by EXTERNAL authentication
// This is the only page in Moodle that has the exception