2 users with the same name
-
Hello, I have a wierd situation on my nodebb.
A user sended me a message. See was trying to log in, but see got an error 'user does not exist' so she registered an account with the same name. Strange enough the account was created. Now there are 2 accounts with the exact same name.
How is this possible, and how do I (as admin) access her old account, because both link to the new made account?
image url)
Here is a link the users page on my website so you can see yourself
If you click here LINK you can see the old account has 10 posts, and the new account 0.
This is not a very big problem cause she has only 10 posts. But I want to know if somebody has this to, and how did it come?
cause if I make a new account with a username that is already chosen I get an error. But 'Eend' didn't get an error. -
That's weird, as you mentioned you can't normally create users with the same username. Are you getting the error message when you try to create another user with the same name?
You can also delete the duplicate user account from the ACP (/admin/manage/users/latest) it shows the user id and post count so it is easier to find which one to delete.
-
@baris said in 2 users with the same name:
That's weird, as you mentioned you can't normally create users with the same username. Are you getting the error message when you try to create another user with the same name?
You can also delete the duplicate user account from the ACP (/admin/manage/users/latest) it shows the user id and post count so it is easier to find which one to delete.
Yes, I get an error when I try. Seems like it's only with that 'eend' account.
-
@JasperNL so it's a display glitch, that user doesn't actually exist?
-
@PitaJ They both exist, but because the system doesn't generate a link using the ID it's going to display the first result of a query on that name when trying to look at the profile, which would be the original profile.
That's likely also the cause of the error when deleting - it's unlikely there is any allowance for processing such a request when queying the DB returns multiple results.
The solution is going to be to remove the second user from mongo or redis manually because there's no allowance in NodeBB for dealing with this situation (since it was never supposed to occur). I'm not familiar enough with either to provide a safe command to use, but several of you are. Essentially he just wants to delete an entire user entry based on a specific user number. If one of you could provide the steps for that process I'm sure it will resolve the issue.
-
@baris said in 2 users with the same name:
If you select the dupe user in the admin page and delete it it will work we use the user id to delete.
i´m interested on the way to do it with mongodb command
i have similar problem, if i download user csv list we have 2 users listed as
null,[[global:guest]],0
and not able to delete on admin zone
also that id=0 breaks some plugins eventually -
@mj said in 2 users with the same name:
w account with a username that is already c
Same thing is happening on our forum. Looking forward to expect a fix ?
-
@faizanzahid please start a new topic for this issue, thanks!