php - password_verify() is not working with simple code -
here code have used , similar code used login works perfectly.
$password=$get_data[0]['password']; $pass=$this->input->post('password'); if (password_verify($pass, $password)) { $get_data_count=1; $this->session->set_userdata('user_name',$get_data[0]['contact_name']); $this->session->set_userdata('user_email',$get_data[0]['contact_email']); $this->session->set_userdata('user_id',$get_data[0]['id']); } else { $get_data_count=0; }
it never enters in if loop.but login section have used similar code , work perfectly.and 1 more thing have used option $options = array('cost' => 11); password hash please help.
Comments
Post a Comment