Permalink
Browse files

MDL-29991 MDL-27107 auth_mnet - consider all incoming roaming users c…

…onfirmed

Moodle 2.x sites do not send the 'confirmed' field any more (see MDL-27107). We
consider all roaming users confirmed automatically.
  • Loading branch information...
mudrd8mz committed Oct 29, 2011
1 parent ea8bda2 commit 67205358fce1a5f135d5f04bf89cabd56c909ed7
Showing with 1 addition and 0 deletions.
  1. +1 −0 auth/mnet/auth.php
View
@@ -306,6 +306,7 @@ function confirm_mnet_session($token, $remotewwwroot) {
}
$remoteuser->mnethostid = $remotehost->id;
$remoteuser->firstaccess = time(); // First time user in this server, grab it here
+ $remoteuser->confirmed = 1;
if (!$remoteuser->id = insert_record('user', addslashes_recursive($remoteuser))) {
print_error('databaseerror', 'mnet');

0 comments on commit 6720535

Please sign in to comment.