Restrict signup to a domain (for private domains)

It would be nice to allow a domain-restriction and automatically set the username from a domain-restricted email.

Ie. allow only sign-ups from ‘arti@example.com’, and make the user name ‘arti’ automatically (ie.enable login with email or email-name).

It’s unlikely that we’ll add this tbh. Your best way of implementing this would be an openid provider which does what you’re looking for.

That’s a shame, I though this would be an easy addition
Ie. check for specified domain name present in email + a new setting to use full email only as username
Using the email name would be nice but there may be character ‘.’ restrictions I saw somewhere).
Thanks!