Jump to content

Check if password is correct (Hashes)


PU13

Recommended Posts

Hello dear community. Today I've realized that the newest IPS version has changed the system where you could check if the password was correct.

About what am I talking ?

$crypted = crypt( $password, '$2a$13$' . $salt ); 
if ($crypted == $hash){
	//LOGIN SUCCESS
}

Some months ago you could check if the password was correct using the previous line. Sadly. Im have done a code that Im re-upgrading and it is not working due to password does not work with it anymore as far as I know.

Thats why Im here. I would like to ask you, how do you check if the password is correct.

I tried to find a post relationated with it but I couldn't find anything.

Currently Im running IPS 4.4.3

Thanks for reading, I hope you can help me.

Regards.

Edited by PU13
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...