我正在使用BCrypt(Laravel的方式)存储我的密码
$NewValue = Hash::make(Input::get('Password'));
$OldValue = Auth::user()->password; // Taking the value from database
if($NewValue == $OldValue)
{
return 'Both Password are equal'
}
else
{
//go for other operation
}
但是每当我检查if条件时,总是得到false。
我犯了什么错误?