drush_provision_drupal_provision_login_reset

Versions
6
drush_provision_drupal_provision_login_reset($url)

Generate a one-time login reset url

Code

contributions/provision/platform/login_reset.provision.inc, line 16

<?php
function drush_provision_drupal_provision_login_reset($url) {
  drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_FULL);
  $account = user_load(1);
  $onetime = user_pass_reset_url($account);
  // pass the login link to the front end
  drush_set_option('login_link', $onetime);
  drush_log(t('Login url: !onetime', array('!onetime' => $onetime)), 'message');
  sess_destroy_uid(1);
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.