Reputation: 5759
I already saved my Password as hashed password in database and how to get password in original format?
My Password is:
$2y$10$WASUjz4XeyjusUI5M7PY3.6vUNOofzMUiVEH/7agw6Gf4JQCWVwiy
Upvotes: 4
Views: 14111
Reputation: 2098
You cannot decrypt laravel password hash which is bcrypt. You can change it with new password.
And apply comparisons like this
Edit
You can get the hashedPassword like this:
$hashedPassword = Auth::user()->getAuthPassword();
And check like this:
if (Hash::check('password', $hashedPassword)) {
// The passwords match...
}
Upvotes: 10