As mentioned in this issue, users’ email is not mandatory on creation but it is on update.
To be more specific, the email is mandatory only if the user already has an email saved before.
So you will be able to update a user with an empty email if the user didn’t have an email before.
My question is - do you think we should keep this behavior, or maybe we should always allow to update a user with an empty email address?
The line in the code we would have to change (delete the last brackets after the &&
) - foreman/user.rb at 9374e4c5b5fe21b50b1aa2ec39579d6d53e90d75 · theforeman/foreman · GitHub
This subject is also discussed here.
Any suggestions on this subject are more than welcome!