2 users with the same name
-
@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!