diff --git a/app/controllers/SessionController.php b/app/controllers/SessionController.php index a408afb..14d94e8 100644 --- a/app/controllers/SessionController.php +++ b/app/controllers/SessionController.php @@ -47,7 +47,7 @@ class SessionController extends \BaseController } else { Session::flash('message', 'You entered the wrong email or password. Try again!'); - return \Redirect::to('login'); + return Redirect::to('login')->with('email', Input::get('email')); } }else @@ -60,7 +60,7 @@ class SessionController extends \BaseController } else { Session::flash('message', 'You entered the wrong email or password. Try again!'); - return \Redirect::to('login'); + return Redirect::to('login')->with('email', Input::get('email')); } } diff --git a/app/routes.php b/app/routes.php index 58af91b..ce7c0c5 100755 --- a/app/routes.php +++ b/app/routes.php @@ -37,12 +37,8 @@ Route::group(array('before' => 'auth'), function() Route::get('users', array('as' => 'users', 'uses' => 'UserController@index')); Route::get('mentors', array('as' => 'mentors', 'uses' => 'UserController@mentors')); Route::get('mentees', array('as' => 'mentees', 'uses' => 'UserController@mentees')); - -}); - -Route::group(array('before' => 'auth'), function() -{ Route::resource('projects', 'ProjectsController'); + }); /** diff --git a/app/views/login.blade.php b/app/views/login.blade.php index 592cc11..ed696f4 100644 --- a/app/views/login.blade.php +++ b/app/views/login.blade.php @@ -51,7 +51,7 @@
{{ $errors->first('email') }}
+ {{ Form::text('email', Input::old('email'), array('class' => 'form-control borderd input-large', 'span' => 'span6', 'placeholder' => 'awesome@awesome.com'))}}{{ $errors->first('email') }}