jeudi 22 mars 2018

WpPassword::make() does not returns same value

Using laravel 5.4 and wordpress tables to create an rest API, using mikemclin/laravel-wp-passwor to check the password match but getting always different hash strings from make() function so getting false while check() user password with wp_password

$password = 'sunset2431';
$wp_hashed_password = '$P$BeAHf.SxPXGo8hs.Cnm2cSpQQV0mGe.';

// returns always false
if ( WpPassword::check($password, $wp_hashed_password) ) {
    return "success";
} else {
    return "false";
}
return WpPassword::make('sunset2431'); // not returns same value after refresh



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire