Forums

Password sync from Joomla to CFv5

bcouvin 18 Nov, 2016
Hello,

I used CFv5 for UserRegistration, and also another CFv5 for editing User Profile.
In this "CFv5 UserProfileEditing" form, I have fields for changing Username and Password.

Everything is OK if making changes on password and sync with Joomla (by using a custom code for setting Joomla password).

I use the login form which is not built from CFv5. This login module is SClogin. Some features for reseting password and reminding the username are Joomla standard features.

The case is that if the user request a reminder/reset of the password from SClogin, he will receive a mail from Joomla to reset the password. The password process change is OK from Joomla process.

The password stored in CFv5 table has to be changed as well. How can I sync the Joomla password to CFv5 when loading "CFv5 UserProfileEditing" form, knowing the Joomla password is hash-coded.


Thanks for your help.
Bertrand
GreyHead 19 Nov, 2016
Hi Bertrand,

First, I would recommend that you don't save the password or the password hash anywhere except in the #__users table. You can always look it up from there if you need it.

To do this you can change your your Profile Editing form so that changes to the username and password are saved back to the #__users table. You can do this using the Joomla! Users methods.

Bob

PS Above all - you should never ever save a plain password - only the hash.
This topic is locked and no more replies can be posted.