user_pass_reset_url

Versions
4.7 – 7
user_pass_reset_url($account)

▾ 1 function calls user_pass_reset_url()

user_mail_tokens in modules/user/user.module
Return an array of token to value mappings for user e-mail messages.

Code

modules/user/user.module, line 1441

<?php
function user_pass_reset_url($account) {
  $timestamp = time();
  return url("user/reset/$account->uid/$timestamp/". user_pass_rehash($account->pass, $timestamp, $account->login), array('absolute' => TRUE));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.