unset_cache_flag($this->pluginconfig.'/ntlmsess', $key);
// Redirection
- if (user_not_fully_set_up($USER)) {
+ if (user_not_fully_set_up($USER, true)) {
$urltogo = $CFG->wwwroot.'/user/edit.php';
// We don't delete $SESSION->wantsurl yet, so we get there later
} else if (isset($SESSION->wantsurl) and (strpos($SESSION->wantsurl, $CFG->wwwroot) === 0)) {