Generate User Password Recover Link

Public

</> CopyGet raw version
php
  1. <?php
  2.  
  3. function user_pass_reset_url($account) {
  4. $timestamp = REQUEST_TIME;
  5. return url("user/reset/$account->uid/$timestamp/" . user_pass_rehash($account->pass, $timestamp, $account->login), array('absolute' => TRUE));
  6. }