Show logged in users password when using password_hash
So I have a registration system setup for my employees, it allows them to update their information as needed however, it does not currently show their existing passsword, instead it shows a hash value.
I'm using the following to add the password to the database:
$password = password_hash($_POST['password'], PASSWORD_DEFAULT);
Which displays something like this on their profile for their password:
$2y$10$bUxrx6rFxS1AISpSCKgGXegQ0CeYMJCrCdUshxQhsjC mC5/yDTRIu
Is there a way that I can unencode that stored variabe to show the logged in user what their password actually is on their profile page, instead of the hash, so they can then go ahead and change it if needed?
Thanks.
__________________
NOTHING TO SEE HERE
|