Skip to content

Commit

Permalink
MDL-27107 auth_mnet - consider all incoming roaming users as confirmed
Browse files Browse the repository at this point in the history
The 'confirmed' field can't be optional. If the identity provider did
not export it, the new remote user would be created with 'confirmed' set
to default zero and as such could be a subject of scheduled deletion.
  • Loading branch information
mudrd8mz committed Aug 28, 2011
1 parent 4ad6128 commit a014e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions auth/mnet/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ function confirm_mnet_session($token, $remotepeer) {
*/
$remoteuser->mnethostid = $remotehost->id;
$remoteuser->firstaccess = time(); // First time user in this server, grab it here
$remoteuser->confirmed = 1;

$remoteuser->id = $DB->insert_record('user', $remoteuser);
$firsttime = true;
Expand Down
2 changes: 1 addition & 1 deletion mnet/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ function mnet_profile_field_options() {
'timemodified', // will be set to relative to the host anyway
'auth', // going to be set to 'mnet'
'deleted', // we should never get deleted users sent over, but don't send this anyway
'confirmed', // unconfirmed users can't log in to their home site, all remote users considered confirmed
'password', // no password for mnet users
'theme', // handled separately
'lastip', // will be set to relative to the host anyway
Expand All @@ -610,7 +611,6 @@ function mnet_profile_field_options() {
'username',
'email',
'auth',
'confirmed',
'deleted',
'firstname',
'lastname',
Expand Down

0 comments on commit a014e3b

Please sign in to comment.