Hallo,
I have to know the registration data of the user who uses my form.
<?php
$user=JFactory::getUser();
?>
<?= $user->username; ?><br />
<?= $user->password_clear; ?>
But the password is encrypted. How can I get the password in clear text?
Thank you for your answer.
HC
I have to know the registration data of the user who uses my form.
<?php
$user=JFactory::getUser();
?>
<?= $user->username; ?><br />
<?= $user->password_clear; ?>
But the password is encrypted. How can I get the password in clear text?
Thank you for your answer.
HC
Hi HC,
There is no way to do that if you did not store a copy of it when they registered, Joomla encrypts the passwords for security.
Best regards,
Max
There is no way to do that if you did not store a copy of it when they registered, Joomla encrypts the passwords for security.
Best regards,
Max
Thank you for your answer.
How can I store a copy of the password, which is not encrypted?
How can I store a copy of the password, which is not encrypted?
Hi hcohl,
You can't, for security Joomla! does not save the clear password, just a 'hash' that can be used to verify it.
Bob
You can't, for security Joomla! does not save the clear password, just a 'hash' that can be used to verify it.
Bob
Hi hcohl,
The hash is inside the password field in the users table, it can't be decrypted.
Best regards,
Max
The hash is inside the password field in the users table, it can't be decrypted.
Best regards,
Max
This topic is locked and no more replies can be posted.
