- This topic has 1 reply, 2 voices, and was last updated 10 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › If username same as an wp admin name
Tagged: overwrite admin
Today we were testing the website before launching, and we were registering random users. I registered the user with the same username as an admin, it did not give me an error that user with this username already exists (it was a super admin); what it did, it overwrote the admin.
I did not find out about it until I was trying to sign in into wp-admin area and it redirected me to the profile page with new credentials as a member.
Now the super admin disappeared and became just a member. I could not access the admin dashboard anymore.
To make a new user with super admin rights and able to see the dashboard I had to insert it with the SQL command in MySQL.
The problem is: if a new user chooses a unique username which is the same as an admin name, it will overwrite the admin.
Hi that should not happen. If someone tries to use a name that is associated with a super admin or is already in the database, the plugin will say that name is already taken. If this happened to you then something is conflicting in your site.
Enable Debug mode if haven’t already done so. Create another super admin account so now you should have 2 super admin accounts. Then just for testing purposes try the same action as you carried out above which changed the super admin account.
Then check the log file. See if anything is revealed in the log file.