Forcing email address to be username

Forcing email address to be username

by Paul Nijbakker -
အကြောင်းပြန်မှု အရေအတွက်: 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.

ပျှမ်းမျှအဆင့်သတ်မှတ်ချက်များ: -
Paul Nijbakker ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Forcing email address to be username

by 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.