php - password_verify() returning false -


i'm having seeming spontaneous problem. password_verify() function returning false.

<?php $email = $_post['email']; $password = $_post['password']; $sql1 =     "select `merchants_id`, `password`, `name` table_name `email` = :email;"; $binds = array(     'email' => $email );  $findvalue = mage::getsingleton('core/resource')->getconnection('core_read')->fetchall($sql1, $binds); $findvalue = $findvalue[0];  $verified = password_verify($password, $findvalue['password']); ?> 

as may able see, i'm using magento (fully patched 1.7) , methods execute query.

if parse through password_get_info($findvalue['password']) picks password valid , outputs expected data (encryption type etc) $verified returns false

the database field set, , has been set, varchar(255).

edit---

this code used create passwords:

    $hash = password_hash($value['password'], password_bcrypt);     $updatesql = 'update table_name set `password` = :password `merchants_id` = :merchant_id;';     $updatebinds = array(         'password' => $hash,         'merchant_id' => $value['merchants_id']     );     $cxn->query($updatesql, $updatebinds); 

also, requested here password string: $2y$10$tftulzd9evuedjaquhcumohgd07x5vv3mlocpjaompt3gqobpehmm

i reset password , worked.

i have suspicion may because upgraded php version 5.6 meaning algorithm may have changed.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -