public function UserSingleBase::passResetUrl

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

Build a one time login link.

Parameters

string $path:

Return value

string

1 method overrides UserSingleBase::passResetUrl()
UserSingle7::passResetUrl in lib/Drush/User/UserSingle7.php
Build a one time login link.

File

lib/Drush/User/UserSingleBase.php, line 110

Namespace

Drush\User

Class

UserSingleBase

Code

public function passResetUrl($path = '') {
  $url = user_pass_reset_url($this->account);
  if ($path) {
    $url .= '?destination=' . $path;
  }
  return $url;
}