Remove example.com email from PAT users
Problem to solve
When a user creates a Personal Access Token, this creates a new user associated with the token.
By default, this user has a username of project_545_bot or similar.
An email address is also added by default, with a domain of example.com - e.g. project545_bot@example.com
This behaviour is unintuitive and confusing, especially as the address is shown as "Verified" in the user profile.
Intended users
Unknown
User experience goal
Remove example.com from user accounts, as this causes confusion - they look like test or hacked accounts.
Proposal
A couple of alternative options:
- the email is left blank
- the user is prompted to add an email address when creating the token
- the email is set to the user's email
- the email is set to the user's email, but with +project545_bot appended to the prefix, e.g. user+project545_bot@mycompany.com
Further details
Permissions and Security
No additional permissions needed.