Posts: 49
Threads: 13
Joined: Jul 2010
Can I win an award for most ridiculous questions posted? Thought I saved the file with the password to login in to the admin. What's the easy way to recover it? Thanks.
Posts: 2,905
Threads: 59
Joined: Jun 2010
The admin panel password is stored in the database and it's encrypted for security.
What you need to do is open phpMyAdmin and navigate to the Settings table.
In the Settings table find a row named 'admin_password'.
Replace its value with this: 5f4dcc3b5aa765d61d8327deb882cf99
Now your admin panel password is 'password'.
Log in to your admin panel and change it to whatever you want in Settings -> Administrator.
I'll create an FAQ for this.
Have
you completed
the interview?
Posts: 535
Threads: 31
Joined: Jul 2010
I'm giving you three guesses...
Posts: 2,905
Threads: 59
Joined: Jun 2010
It would be an improvement but there are a few things to consider:
1. It's quite rare that an administrator forgets their password.
2. The current solution is fairly simple.
3. It's not an easy feature to add. For example, you'd need to stop someone from repeatedly resetting it etc.
By the way, running md5() multiple times supposedly reduces the possible combinations available.
Have
you completed
the interview?
Posts: 535
Threads: 31
Joined: Jul 2010
OK, just not everyone bothers to read forums and FAQs.
I'm giving you three guesses...
Posts: 2,905
Threads: 59
Joined: Jun 2010
I'm not saying the current solution is better - a 'lost password' feature is definitely better. I'm just saying why it will have a very low priority as far as I'm concerned. If you want to develop it yourself then I'll certainly add it. If not I may develop it at some point but I can't guarantee that.
Have
you completed
the interview?
Posts: 535
Threads: 31
Joined: Jul 2010
Heh, I already found a solution:
Code:
<span style="position:absolute; bottom:16px; left:16px;"><a href="http://www.commentics.org/support/knowledgebase.php?article=12" target="_blank">Lost your password?</a></span>
Put that in "auth.php" after line 98. As soon as that FAQ entry is there, the link will work.
I'm giving you three guesses...
Posts: 2,905
Threads: 59
Joined: Jun 2010
Nice compromise
Have
you completed
the interview?
Posts: 535
Threads: 31
Joined: Jul 2010
Glad you liked it

. There's one thing about the FAQ entry that I don't like though: not all people have phpMyAdmin.
I'm giving you three guesses...
Posts: 2,905
Threads: 59
Joined: Jun 2010
I know but it's so popular. What would you put?
Have
you completed
the interview?