Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Verified Commit 7e47317d authored by David Beniamine's avatar David Beniamine
Browse files

Add Moodle base url in redirect url

parent 3d8455df
......@@ -26,6 +26,7 @@ class helper
public static function requireLabnbookAuthentication()
{
global $COURSE;
global $CFG;
if (fetch\user::isAuthenticated()) {
return;
}
......@@ -35,7 +36,7 @@ class helper
return;
case fetch\institution::ERROR_LOGIN_UNKNOWN:
redirect(
"/mod/labnbook/user-binding.php?courseid={$COURSE->id}&return="
$CFG->wwwroot."/mod/labnbook/user-binding.php?courseid={$COURSE->id}&return="
. \base64_encode($_SERVER['REQUEST_URI'])
);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment