Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new setting to allow replacing name and surname instead of scrambling #180

Open
wants to merge 1 commit into
base: MOODLE_311_STABLE
Choose a base branch
from

Conversation

kkrzyzaniak
Copy link

Sometimes scrambling names is not enough.
A new setting was added to allow replacing first and last names in mdl_user table instead of scrambling all names. It replaces all names using a prefixes and user id. It doesn't modify users with usernames mentioned in keepusernames setting.

'department' => ['institution', 'department'],
'address' => ['address', 'city', 'country', 'lang', 'calendartype', 'timezone'],
];
self::replace_first_and_last_names();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be all or nothing? ie we either scramble all the names, OR we replace all the names. We don't want to do both? The scrambling is mildly expensive so we don't want to replace them and then needlessly scramble them again

Some unit tests would be good too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants