Fix redirect loop.

This commit is contained in:
James Cole
2015-11-01 08:03:41 +01:00
parent f50244a41f
commit 9f992f003d
2 changed files with 17 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ use Request as Rq;
use Session;
use Twig;
use Validator;
use Log;
/**
* Class AuthController
@@ -23,6 +24,19 @@ class AuthController extends Controller
{
use AuthenticatesAndRegistersUsers, ThrottlesLogins;
/**
* Log the user out of the application.
*
* @return \Illuminate\Http\Response
*/
public function getLogout()
{
Auth::logout();
Log::debug('Logout and redirect to root.');
return redirect('/login');
}
/**
* Show the application registration form.
*