MDL-39322 users: report correct auth method for site administrators

This commit is contained in:
Charles Fulton 2013-04-23 10:20:00 -07:00
parent cf5a3296c4
commit 628e9b2011

View File

@ -497,6 +497,7 @@ if ($formdata = $mform2->is_cancelled()) {
$upt->track('username', html_writer::link(new moodle_url('/user/profile.php', array('id'=>$existinguser->id)), s($existinguser->username)), 'normal', false);
$upt->track('suspended', $stryesnooptions[$existinguser->suspended] , 'normal', false);
$upt->track('auth', $existinguser->auth, 'normal', false);
if (is_siteadmin($user->id)) {
$upt->track('status', $strusernotupdatedadmin, 'error');
@ -510,8 +511,6 @@ if ($formdata = $mform2->is_cancelled()) {
//load existing profile data
profile_load_data($existinguser);
$upt->track('auth', $existinguser->auth, 'normal', false);
$doupdate = false;
$dologout = false;