是否可以在 ABP 中创建没有电子邮件的用户?

Is User creation without email possible in ABP?

我正在使用 ASP.NET Boilerplate v1.0.

最近,我们有一个客户在不提供电子邮件的情况下请求创建用户。在我的评估中,似乎 EmailAddressAbpUser.

的体系结构中是强制性的

因此,要继续进行此操作,我需要知道在没有电子邮件的情况下创建用户的可能性。

感谢和问候,
乔治·瓦尔吉斯
ABP 论坛用户名:George

本主题的回答:Unique email for user by tenant

In general, it is not possible due to a limitation (feature) of the Required attribute.

A workaround for your design decision is to generate a placeholder,
e.g. 0000-0000-0000-0000@example.com (where 0000-0000-0000-0000 is a NewGuid).