|Posted: Wed, 2008-01-23 16:04|
I have run into this one problem in numerous sites where all of a sudden the admin password stops working. On my most recent attempt I went through the "resetadmin" procedure located in the FAQ pages and was unable to complete this. Thankfully I had backups of everything and was able to at least get the gallery functional without the admin login working. After a few failed tries of this I decided there has to be a way to be able to get in. Here is what I came up with to be able change the admin password.
In File gallery/login.php around line #34
this line should look like
I replaced this line with
After doing this I was able to then login to the system with any password. Once in the system go immediately to the admin page and change the password for the admin user. Then go back into the code of login.php and change line # 34 back to its original form.
Hope this helps some people as I have seen this problem arise in the forums before.