This commit is contained in:
Graham Campbell
2014-12-29 23:07:46 +00:00
parent 4d1246dcf6
commit 15861fbf5e
9 changed files with 59 additions and 15 deletions
+5 -1
View File
@@ -1,12 +1,13 @@
<?php
/**
* Logs users into their account
* Logs users into their account.
*/
class AuthController extends Controller
{
/**
* Shows the login view.
*
* @return \Illuminate\View\View
*/
public function showLogin()
@@ -16,6 +17,7 @@ class AuthController extends Controller
/**
* Logs the user in.
*
* @return \Illuminate\Http\RedirectResponse
*/
public function postLogin()
@@ -24,6 +26,7 @@ class AuthController extends Controller
return Redirect::intended('dashboard');
} else {
Throttle::hit(Request::instance(), 10, 10);
return Redirect::back()
->withInput(Input::except('password'))
->with('error', 'Invalid email or password');
@@ -32,6 +35,7 @@ class AuthController extends Controller
/**
* Logs the user out, deleting their session etc.
*
* @return \Illuminate\Http\RedirectResponse
*/
public function logoutAction()