Ejemplo n.º 1
0
 /**
  * Display the HTTP auth form for username and password
  * @param IResponse $response
  */
 public function sendAuthRequest(IResponse $response)
 {
     $response->setStatus(IHttpStatus::HTTP_UNAUTHORIZED);
     $response->addHeader('WWW-Authenticate', 'Basic realm="Please provide your username and password"');
     $response->flush();
     exit;
 }