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
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thank you for your answer.
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
How could the hash look? I have no idea.
Hi hcohl,
The hash is inside the password field in the users table, it can't be decrypted.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.