Forcing email address to be username

Forcing email address to be username

Paul Nijbakker
Number of replies: 1

Dear Howard,

I am looking for a way to require users who register via email-based self-registration, to use their email address as username, but I do not find a way in the site settings (Moodle 3.1.8). I can only find a site-wide setting to allow users to use non-alphanumeric charaters in their username, but no setting to force the use of such characters (and anyway, this would collide with the usernames created by our LDAP authentication plugin).

Do you know how I could require the email address to be username, as well as email address, for these self-registering users? I would be much obliged for that information.

Rgrds,
Paul.

평균 등급 : -
In reply to Paul Nijbakker

Re: Forcing email address to be username

Howard Miller
Core developers 사진 Documentation writers 사진 Particularly helpful Moodlers 사진 Peer reviewers 사진 Plugin developers 사진

I split your post from the discussion you added it to as it isn't really related.

I don't think there's a straightforward way to do this. It wouldn't be a massive job (for someone with Moodle plugin development skills anyway) to clone the authentication plugin and make the changes you require.