AI OnAI Off
In Episervers aspnet identity implementation the RequireUniqueEmail is set to true as standard so if you haven't done any custom implementation of the ApplicationUserManager this should be the default behaviour.
For memebership provider this is set on the provider declaration in web.config
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="20">
<providers>
<add name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="SqlServices"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
passwordFormat="Hashed"
requiresUniqueEmail="true"
applicationName="MyApplication" />
</providers>
</membership>
Hi!
Is it possible to make the email field for an episerver user unique, to avoid users with duplicate emails? Or do we have to create custom logic around this?
This question applies both to aspnet membership provider and aspnet identity.