Login page
This commit is contained in:
@@ -5,7 +5,15 @@
|
||||
*/
|
||||
class AuthController extends Controller {
|
||||
public function showLogin() {
|
||||
return 'Coming soon...';
|
||||
return View::make('auth.login');
|
||||
}
|
||||
|
||||
public function postLogin() {
|
||||
if (Auth::attempt(Input::only(['email', 'password']))) {
|
||||
return Redirect::intended('dashboard');
|
||||
} else {
|
||||
return Redirect::back()->withInput(Input::except('password'))->with('error', 'Invalid email or password');
|
||||
}
|
||||
}
|
||||
|
||||
public function logoutAction() {
|
||||
|
||||
Reference in New Issue
Block a user