public function Request::getUserInfo

Gets the user info.

Return value

string A user name and, optionally, scheme-specific information about how to gain authorization to access the server

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 896

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getUserInfo() {
  $userinfo = $this
    ->getUser();
  $pass = $this
    ->getPassword();
  if ('' != $pass) {
    $userinfo .= ":{$pass}";
  }
  return $userinfo;
}