Bug #4007
closedUsers email is not mandatory on creation but it is on update
Description
https://github.com/theforeman/foreman/blob/develop/app/models/user.rb#L39
This is rather odd as it allows users to not have a mail, but if you edit them you are forced to set an email.
Updated by Dominic Cleal almost 11 years ago
It's a bit weird, but I think it's meant so a user can be created from some external auth source without an e-mail address, but then they're forced to set one on login. However this currently also applies to the admin if they edit the user again, so perhaps it should still be optional if an admin is saving the user? Or it just needs redesigning.
Updated by Daniel Lobato Garcia almost 11 years ago
If nothing depends on it, I'd fully remove the validator. I guess it won't wreck anything since there already could be users without email.
Updated by Dominic Cleal almost 11 years ago
The only thing that would use it are the e-mails on failed reports (to the owner), so check there's a fallback or at least graceful exit in these cases. We could keep the validator, but permit an empty e-mail address too.
Updated by Lukas Zapletal almost 11 years ago
I have entering an email address everywhere - e.g. I am evaluating a software, I know I will not be sending any reports and I need to enter it. I vote for optional e-mail address and changing our sender helper. If the e-mail provided was nil, let's just put warning in logs and skip the send.
Updated by Marek Hulán over 2 years ago
This was discussed again recently https://community.theforeman.org/t/kerberos-cross-domain-signin-fails-foreman-webui/27460/16 specifically this comment https://community.theforeman.org/t/kerberos-cross-domain-signin-fails-foreman-webui/27460/4
Updated by The Foreman Bot over 2 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/9279 added
Updated by Nofar Alfassi over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|db023da3afc8f01d40d0f12257925cd914a30ec7.
Updated by Amit Upadhye about 2 years ago
- Category set to Users, Roles and Permissions
- Assignee set to Nofar Alfassi