mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-20209 fixed incorrect mail sync with ext auths
This commit is contained in:
parent
02b5087e14
commit
64521d31ac
@ -167,7 +167,7 @@ if ($usernew = $userform->get_data()) {
|
||||
$DB->update_record('user', $usernew);
|
||||
|
||||
// pass a true $userold here
|
||||
if (! $authplugin->user_update($user, $userform->get_data())) {
|
||||
if (! $authplugin->user_update($user, $usernew)) {
|
||||
// auth update failed, rollback for moodle
|
||||
$DB->update_record('user', $user);
|
||||
print_error('cannotupdateprofile');
|
||||
|
Loading…
x
Reference in New Issue
Block a user