More in this section

Forums / Developing with Sitefinity / Unique email addresses between multiple membership providers

Unique email addresses between multiple membership providers

2 posts, 0 answered
  1. Albert
    Albert avatar
    8 posts
    19 Dec 2014
    14 Jul 2015
    Link to this post


    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,


  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    06 Sep 2017
    17 Jul 2015
    Link to this post
    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.

    Svetoslav Manchev
    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
2 posts, 0 answered