Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4861 posts 12132 karma points MVP 3x admin c-trib
    Sep 27, 2016 @ 11:16
    Jeroen Breuer
    0

    Update existing member shows "Username is already in use"

    Hello,

    I'm trying to update an existing member, but when I save the member I get the following error: "Username is already in use". The Username/Login field is not updated. I checked the cmsMember table, but the LoginName is only there once.

    I haven't reported this as an issue because it only happens for 1 specific member. So I first would like to check on the forum if someone else experienced this before. We're using Umbraco 7.4.3.

    enter image description here

    Jeroen

  • Ravi Motha 289 posts 499 karma points MVP 4x c-trib
    Sep 27, 2016 @ 13:25
    Ravi Motha
    0

    Are you using Email as Login names, and i thae it you have checked that you don't have that user already in the database somewhere else

  • Jeroen Breuer 4861 posts 12132 karma points MVP 3x admin c-trib
    Sep 27, 2016 @ 13:44
    Jeroen Breuer
    0

    Yes the login names are also the email. I checked in cmsMember table if it's duplicate. Should I check any other tables?

    Jeroen

  • Ravi Motha 289 posts 499 karma points MVP 4x c-trib
    Sep 27, 2016 @ 13:56
    Ravi Motha
    0

    that's odd and did you check both login field and email field in the CMsmember table.. (no this should be the only table you need to check)

  • Jeroen Breuer 4861 posts 12132 karma points MVP 3x admin c-trib
    Sep 27, 2016 @ 14:03
    Jeroen Breuer
    0

    Yes I did. I've checked the login and email fields. It's only there once. However the login seems to contain a space at the end. Maybe that results in incorrect behavior.

    Jeroen

  • Ravi Motha 289 posts 499 karma points MVP 4x c-trib
    Sep 27, 2016 @ 14:09
    Ravi Motha
    0

    i was going to ask you to check the length to see if there was white space in the values (as you rightly said, that's what causes the issue)

  • Jeroen Breuer 4861 posts 12132 karma points MVP 3x admin c-trib
    Sep 27, 2016 @ 14:13
    Jeroen Breuer
    0

    But if I try to remove the space at the end it still says the username is already in use. Should I do it directly in the db?

    Jeroen

  • Ravi Motha 289 posts 499 karma points MVP 4x c-trib
    Sep 27, 2016 @ 14:56
    Ravi Motha
    1

    That's a question of confidence, , but yes i would do that as long as you feel confident

  • Anders Bjerner 443 posts 2545 karma points MVP 4x admin c-trib
    Sep 27, 2016 @ 15:49
    Anders Bjerner
    104

    This is just a guess, but that space at the end might "confuse" Umbraco's validation. At least I've seen that in other systems.

    If that is the case, what happens if you change the email to something entirely different, save the member, and then change back to the original value, but without the space?

  • Kris Janssen 210 posts 569 karma points c-trib
    Oct 21, 2016 @ 16:22
    Kris Janssen
    1

    It might be worth to enter this in the issue tracker (if someone didn't already do so).

    I'll have a go...

  • Ed Salwin 8 posts 72 karma points
    Dec 14, 2016 @ 18:51
  • Eric Wilkinson 13 posts 83 karma points
    May 01, 2018 @ 15:08
    Eric Wilkinson
    0

    Had this happen today for a client. The issue was the space at the end as mentioned by the approved answer.

    To get the user to save, change the login to something else, and then set it back - without the space at the end.

Please Sign in or register to post replies

Write your reply to:

Draft