[FEATURE] Minor features

- Added basic auth to Response class.
- Added getPassword() method for basic auth password in Response class.
This commit is contained in:
Simon Sessingø
2015-10-21 15:09:32 +02:00
parent 58e4eb85bb
commit 8959a237f9
2 changed files with 14 additions and 2 deletions
+5
View File
@@ -29,4 +29,9 @@ class Response {
$this->redirect(url());
}
public function auth($name = '') {
header('WWW-Authenticate: Basic realm="' . $name . '"');
header('HTTP/1.0 401 Unauthorized');
}
}