Laravel password check for changing
laravel, laravel-4, php
Solution
Because part of the hash is the salt which will never be the same. You need to use the `Hash::check` method instead which knows what to do properly. So...
if (Hash::check(Input::get('old_password'), Auth::user()->password)) {
echo 'done';
}
Problem
In Laravel 4 I have the following condition to see if the user has inserted his current password correctly, and if yes, then do something. Here is the code: ``` if(Auth::user()->password==Hash::make(Input::get('old_password')) ) { echo 'done'; } ``` But it does not meet the condition. Why?