Jump to content

IPS connect not matching password


freudo

Recommended Posts

Posted (edited)

User password and posting password not matching.

$username		= $input[0]['username']; -- fetcRemote username input ingame
$password		= $input[0]['password']; -- fetcRemote password input ingame

$salt = $member->members_pass_salt; -- getting member pass salt
$hash = crypt($password, '$2y$10$' . $salt);

if (\IPS\Login::compareHashes($member->members_pass_hash, $hash) === TRUE) {
    	echo "correct";
}
else
{
	echo "incorrect";
}

result example:

- input password = QWEjashjfahsjahsfhjblabalbala

- hash password = KAJSFKJAQQWEbalalbal

note: not shared completed code

Edited by barikat

WOC-DD Destruction Derby

-Level system

-Clan system

-Topwins

-Event system for EXP

-Podium with animation

And more

350x20_FFFFF_FFFFF_00000_00000.png

Posted

just use md5 instead this type of hashing +_+

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

  • Moderators
Posted
5 hours ago, Master_MTA said:

just use md5 instead this type of hashing +_+

Just don't use MD5, instead of bcrypt.. please.

Here is NanoBob's tutorial, how to handle passwords: https://forum.multitheftauto.com/topic/119243-user-authentication-password-handling-and-doing-it-safely/

 

(Functions in php: password_hash, password_verify)

 

  • Like 1
Posted

thanks, problem is solved.

WOC-DD Destruction Derby

-Level system

-Clan system

-Topwins

-Event system for EXP

-Podium with animation

And more

350x20_FFFFF_FFFFF_00000_00000.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...