user_pass_reset_url

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 user_pass_reset_url($account)

Generates a unique URL for a user to login and reset their password.

Übergabeparameter

object $account An object containing the user account.

Rückgabewert

A unique URL that provides a one-time log in for the user, from which they can change their password.

▾ 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 1467

<?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));
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen