Proposal to allow NULLs in user.username database field

Proposal to allow NULLs in user.username database field

by Petr Skoda -
Number of replies: 1
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi devs,

I am planning to create some new auth plugins later this year, so I was wondering if anybody would be interested in my proposal to allow usernames to be nullable - see MDL-85198 for technical explanation and use cases. It would make my work a lot easier...

In short, usernames are nowadays mostly replaced by emails to improve user experience. There is also no reliable way to guarantee multiple SSOs have unique usernames.

Average of ratings: -
In reply to Petr Skoda

Proposal to allow NULLs in user.username database field

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
This could be also used to solve the old privacy issue of deleted accounts keeping the original email in username field.