-1

We have a Joomla 2.5 website and a second site (non-Joomla) that needs to have user information synchronized. We already have implemented a user registration that syncs to the other system after the email verification link is clicked.

The issue I have now is password reset. Joomla has a nice system to allow a user to reset the password. What I need to know is once the user clicks on the email to start the reset process (reset.php), how can I grab the user information within the confirm() method? All I need is the user (email or id) so that I can pass the new encrypted password to the other system.

Any suggestions would be VERY helpful.

4

1 回答 1

0

在 filecomponents\com_users\models\reset.php中,在第 227 行附近的函数processResetConfirm()中,用户 ID 在$user->id.

// Get the user id.
$db->setQuery((string) $query);
$user = $db->loadObject();

现在应该在 int 中找到用户 ID$user->id

于 2012-07-09T18:04:01.543 回答