maybe is only a typo but 'password' is different from 'Password' however to check if not hashed password is the same of hashed password you should use:
Hash::check('password', '$2y$10$ffGWpjSuPGEHooRFoB6el.IDAUJKjHG851WM8FniYfbYGzODcs762');
longilineo said:
maybe is only a typo but 'password' is different from 'Password' however to check if not hashed password is the same of hashed password you should use:
Hash::check('password', '$2y$10$ffGWpjSuPGEHooRFoB6el.IDAUJKjHG851WM8FniYfbYGzODcs762');
Sorry the typo was only in my post above. In my testing I used the lowercase.
If I'm not mistaken, Laravel uses BCRYPT alogrithm to generate hashes. This is a ONE WAY hash, which means that by design, passwords always differ no matter if it is the same string input. I can explain the algorithm my self, but I would rather point you to a more indepth explaination... http://www.sitepoint.com/why-you-should-use-bcrypt-to-hash-stored-passwords/
Hopefully that helps.
MineSQL said:
If I'm not mistaken, Laravel uses BCRYPT alogrithm to generate hashes. This is a ONE WAY hash, which means that by design, passwords always differ no matter if it is the same string input. I can explain the algorithm my self, but I would rather point you to a more indepth explaination... http://www.sitepoint.com/why-you-should-use-bcrypt-to-hash-stored-passwords/
Hopefully that helps.
correct ;)
Guys I found my mistake. I was hashing the password again when I should not have been.
app/controllers/RemindersController.php View
public function postReset()
$response = Password::reset($credentials, function($user, $password)
{
/* $user->password = Hash::make($password); */
$user->password = $password;
$user->save();
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community