Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Deleted admin account while logged into dashboard in PEBKAC incident - how to resolve?
Ok, in a numbnuts attempt to understand why SSO wasn't working, I deleted the admin user account instead of updating the email field like I meant to. So now I can't access any part of the app - what do I need to do (other than CTFO) - delete config.php? manually create the user in some table somewhere?
And I do hope this has given at least some of you a chuckle....
And I do hope this has given at least some of you a chuckle....
Tagged:
0
Comments
You can temporarily disable password checking by inserting a return true; at the top of the CheckVanilla function in the file library/core/class.passwordhash.php. (currently line 82 of that file.) This way you can log in with your new username and any password. From there you can change your password from your profile page.
you also have to set the Admin field to 1 in mysql to give yourself Master Admin privileges. (at least I believe this is how it works.)
remember to remove that return true when you're done creating the new account.
So, create a new user with the password "aa", Admin set to 1, insert that return true, log in as the new user with any password, go to your profile page and change your password, and delete that return true.