aboutsummaryrefslogtreecommitdiff
path: root/src/filters.php
diff options
context:
space:
mode:
authorCamil Staps2015-02-22 12:15:31 +0100
committerCamil Staps2015-02-22 12:15:31 +0100
commite007364139143a037fcd64b42ad35ce1630590fe (patch)
tree96cf5999d3976b909bbbe93e61eec089427b7b44 /src/filters.php
parentfilters (diff)
Got basic HTTP authentication working
Diffstat (limited to 'src/filters.php')
-rw-r--r--src/filters.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/filters.php b/src/filters.php
index 302c376..17daa3a 100644
--- a/src/filters.php
+++ b/src/filters.php
@@ -1,5 +1,4 @@
<?php
-Route::filter('basic.once', function()
-{
- return Auth::onceBasic();
+Route::filter('botleaguesapi-http-auth', function(){
+ header('WWW-Authenticate: Basic realm="Botleagues"');
}); \ No newline at end of file