Fix default emaildomain when creating PAT users
What does this MR do and why?
Remove hardcoded example.com emaildomain for users that are created by creating a resource access tokens. The emaildomain is now set to the instance hostname with a noreply subdomain prefix (see Gitlab.config.gitlab.host https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/initializers/1_settings.rb#L167).
@example.com => @noreply.#{Gitlab.config.gitlab.host}
Screenshots or screen recordings
How to set up and validate locally
- Install Current GitLab Instance
- Apply Patch
- Restart GitLab
- Create a Projekt Access Token
- Set a name for the token
- Go to admin/users
- search for the token name
- check the emaildomain for the user
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #260305 (closed)
Edited by cruelsmith
