public function UserSingle7::passResetUrl

8.0.x UserSingle7.php public UserSingle7::passResetUrl($path = '')
7.x UserSingle7.php public UserSingle7::passResetUrl($path = '')
master UserSingle7.php public UserSingle7::passResetUrl($path = '')

Build a one time login link.

Parameters

string $path:

Return value

string

Overrides UserSingleBase::passResetUrl

File

lib/Drush/User/UserSingle7.php, line 35

Namespace

Drush\User

Class

UserSingle7

Code

public function passResetUrl($path = '') {
  $options = array();
  if ($path) {
    $options['query']['destination'] = $path;
  }
  // D6,D7 append a /login. Otherwise identical to D8+.
  return drush_url(user_pass_reset_url($this->account) . '/login', $options);
}