Commit 18a2dfda authored by webchick's avatar webchick
Browse files

#712598 by add1sun: Added documentation for user_pass_reset_url().

parent f177c12d
......@@ -2077,6 +2077,16 @@ function user_external_login_register($name, $module) {
user_login_submit(array(), $form_state);
* Generates a unique URL for a user to login and reset their password.
* @param object $account
* An object containing the user account.
* @return
* A unique URL that provides a one-time log in for the user, from which
* they can change their password.
function user_pass_reset_url($account) {
$timestamp = REQUEST_TIME;
return url("user/reset/$account->uid/$timestamp/" . user_pass_rehash($account->pass, $timestamp, $account->login), array('absolute' => TRUE));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment