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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -