Login page

This commit is contained in:
manavo
2014-11-24 17:21:50 +00:00
parent 66ddd7bd04
commit 2176e63ad9
3 changed files with 46 additions and 1 deletions
+9 -1
View File
@@ -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() {