Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Damiaan 442 posts 1302 karma points MVP 6x c-trib
    Jan 25, 2016 @ 17:19
    Damiaan
    0

    Finding a solution for duplicate usernames with members

    I filled a new issue earlier today, about duplicate usernames in the members. Currently I am wondering about other solutions.

    What is the problem?

    The MembershipService.CreateMember(...) allowes duplicate emails and duplicate usernames. For this particular project I don't worry (yet) about duplicate emails. It are the duplicate usernames that bother me.

    What are possible solutions

    As far as I thought about it, while writing this post, I could come up with the following solutions:

    1. adding a check for existing members on every possible place we are calling MemberService.CreateMember(...).
    2. subscribing to the Events of the Member
    3. implementing your own MembershipProvider/UserStore (the replacement of the old membership provider)

    Objections against our own solutions

    1. work because we are using the RestApi which calls the MemberService.CreateMember(...)
    2. I think it's pretty difficult making unique constraints using Events when running in a loadbalanced environment.
    3. Afraid of introducing new bugs.

    So, dear reader, what is your view on this topic? Did you know duplicate usernames are allowed for your UmbracoMembers? Do you have solutions to solve this? Or maybe any experience you wish to share?

    Looking forward hearing from you :)

    Your humble servant
    Damiaan

Please Sign in or register to post replies

Write your reply to:

Draft