Browse Source

Use Redirect::guest in "auth" filter.

Taylor Otwell 11 years ago
parent
commit
763f1d5181
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/filters.php

+ 1 - 1
app/filters.php

@@ -35,7 +35,7 @@ App::after(function($request, $response)
 
 Route::filter('auth', function()
 {
-	if (Auth::guest()) return Redirect::route('login');
+	if (Auth::guest()) return Redirect::guest('login');
 });