Wrong admin password?

dmahadocon
Posts: 1
Joined: Wed Mar 31, 2010 9:18 pm

Wrong admin password?

Postby dmahadocon » Wed Mar 31, 2010 10:54 pm

After installing LinPHA (Version 1.3.4), I was unable to log in as admin. The instructions were to use admin/amahiadmin for the user name/password, but it kept coming back with unknown user or wrong password. I couldn't find anything here in the forum where anybody else was having this problem, so I considered it to be a self-inflicted wound, so to speak. So I dove into the code to see if I could figure out what was going on.

First thing I did was pull up phpMyAdmin to look at the database for LinPHA. Checking on the linpha_users table, the password was coded as

Code: Select all

21232f297a57a5a743894a0e4a801fc3
Next, I pulled up the source code, located the verify.php file, and replaced the line:

Code: Select all

if ($_POST['user_name']==$result['nickname'] && md5($_POST['user_pass'])==$result['password'])
with

Code: Select all

if ( 1==1 )
which would result in a successful login regardless of the password used.

Next, log into LinPHA with admin/amahiadmin again, changed the password to amahiadmin, then logged back out.

Reverted the code in verify.php back to it's original state, and was successful in logging into the program with the amahiadmin password.

Checking linpha_users table again in phpMyAdmin shows that the password is now

Code: Select all

cf47429cfddec09bb37c2401a23679be
Conclusion? I don't think that the post-installation password was amahiadmin.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Wrong admin password?

Postby bigfoot65 » Thu Apr 01, 2010 3:41 am

Thanks for pointing out the error. Sorry for any inconvenience. The login credentials should be admin/admin and have been updated accordingly in the special instructions. Please uninstall and reinstall. I verified it works nad please let us know if it works for you.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 51 guests