Skip to content

Commit

Permalink
Allow auth and password mutation in Update user step
Browse files Browse the repository at this point in the history
  • Loading branch information
golenkovm committed Jul 5, 2024
1 parent d812d96 commit 7e706a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions classes/local/step/update_user_trait.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ public function execute($input = null) {
(array) $config->fields
);

// Some fields will not be updatable (intentionally).
unset($userobject->password);
unset($userobject->auth);

// Update user fields using core api.
\user_update_user($userobject, false, false);
\profile_save_data($userobject);
Expand Down
2 changes: 1 addition & 1 deletion lang/en/tool_dataflows.php
Original file line number Diff line number Diff line change
Expand Up @@ -660,4 +660,4 @@
$string['update_user:userid'] = 'User ID';
$string['update_user:userid_help'] = 'The internal ID for this user.';
$string['update_user:fields'] = 'Fields';
$string['update_user:fields_help'] = 'Fields set here correspond to the fields available in the underlying user table. Custom user profile fields, must be prefixed with "profile_field_" followed by the shortname. Not all fields can be updated, such as password and auth';
$string['update_user:fields_help'] = 'Fields set here correspond to the fields available in the underlying user table. Custom user profile fields, must be prefixed with "profile_field_" followed by the shortname';

0 comments on commit 7e706a1

Please sign in to comment.