Unique email addresses between multiple membership providers

Posted by Community Admin on 04-Aug-2018 09:36

Unique email addresses between multiple membership providers

All Replies

Posted by Community Admin on 14-Jul-2015 00:00

Hey,

We use a little bit different approach for user logon - they provide email address (instead of username) and password  (to simplify: email address is username).

We ​have also Ldap membership provider enabled and we allow ldap
users to login on the front-end. Everything works fine, but admin users
can create accounts in the backend (Sitefinity admin), and we need to
restrict email addresses to be unique (in other words: admin cannot
create a new user with email address that exists for Ldap user). We implemented this on the front-end by checking with LdapMembershipProvider if provided email address exists, if not then we call CreateUser on UserManager, but we cannot ​add any custom validation ​in Sitefinity backend to create user form.

Is there any possibility to achieve this ?

Thank you,

Albert

Posted by Community Admin on 17-Jul-2015 00:00

Hello Albert,

In order to achieve your need you can set the username and the nickname as the user's e-mail address.

In that case users with one and the same e-mail could not be created in any membership provider.

Regards,
Svetoslav Manchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed