I have profile form for user can edit own profiles. in this form I have current password. that must be match from seved into database.
表格:
{{ 表格::password('currPassword', array('id'=>'currPassword')) }}
我想在控制器中使用这个函数来判断数据库.
$data = User::find($id);
if( ! Hash::check( $data->password , Input::get('currPassword') ) )
{
return Redirect::to('/admin/profile')
->with('message', 'Current Password Error !')
->withInput();
}
hashed 123456
password into database is ok and after putting 123456
in currPassword
that must be return TRUE
but that return FALSE
always.