Jump to content

[SOLVED] Not recognising password?


PGTibs

Recommended Posts

Attempting login...
Username/Password provided...

$_POST data:
Array
(
    [username_post] => 1
    [password_post] => test
    [myclicker] => (More)
)

User: 1
Password: test
MD5 Password...    098f6bcd4621d373cade4e832627b4f6
Perform query...

SELECT * FROM `clients` WHERE ID='1' AND password='098f6bcd4621d373cade4e832627b4f6' LIMIT 1


Query succesfully executed
Results:Error: The Username/Password Incorrect
OK lets debug it!.
Perform query...  

SELECT * FROM `clients` WHERE ID='1'


Query succesfully executed
There are 1 with the ID `1`
Results:

Array
(
    [iD] => 1
    [ClientMale] => Rob
    [ClientFemale] => Eileen
    [NoticeDAT] => 
    [iP] => 0
    [ClientAgem] => 49
    [ClientAgef] => 51
    [ClientStreet] => 33 Eastville
    [ClientTown] => Yeovil
    [ClientPost] => BA21 4JD
    [ClientNumber] => 01935434962
    [ClientNotes] => notes
    [ClientBudget] => budget
    [ClientLoc] => location
    [ClientTime] => time&date
    [ClientEmail] => N.A
    [ClientFlo] => Flourists info
    [ClientPho] => photo info
    [ClientRecven] => reception info
    [ClientTran] => transport info
    [ClientTravg] => travel guests
    [ClientTravh] => travel honeymoon
    [ClientHair] => hair 
    [ClientMake] => makeup
    [ClientOut] => outfit
    [ClientCat] => caterer
    [ClientEnter] => entertainment
    [ClientCon] => contingency
    [password] => 44c7d73a1fa98c2302f2de67bd80ce95
)

Comparing password...    FAIL
098f6bcd4621d373cade4e832627b4f6 ($pass)   32
44c7d73a1fa98c2302f2de67bd80ce95($result[password]) 32

 

Was the result...

Still not matching up with the password by the looks of it.

Link to comment
Share on other sites

Ok I just noticed I did a boobo earlier. In my reset.php I forgot to tell you to add in the relevant code for connecting to mysql. Without this my reset script wont work.

 

I think you need to add include 'config.php'; before mysql_query("UPDATE `clients` SET `password`='".md5('test')."' WHERE `ID`=1");. run the reset script again and try you login.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.