User logged out after password change

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 4, 2013   (RSS)

By gregThomas - March 4, 2013

Hi Greg,

After you have updated a users password or username in the database, you will need to run this function to update the users session data:

websiteLogin_setLoginTo( $CURRENT_USER['username'], $_REQUEST['newPassword'] );                // update current login session

You will need to changed $_REQUEST['newPassword'] to a variable that contains the users password that isn't encrypted.

Let me know if you have any questions.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com