| ␊ |
| ␉␉$remember = \Input::get('remember');␊ |
| ␊ |
| ␉␉if ($validator->fails()) {␊ |
| ␉␉if ($validator->fails()) ␊ |
| ␉␉{␊ |
| ␊ |
| ␉␉␉return Redirect::to('login')␊ |
| ␉␉␉␉->withErrors($validator) ␊ |
| ␉␉␉␉->withInput(Input::except('password'));␊ |
|
| ␊ |
| ␉␉␉␉} else {␉ ␉␊ |
| ␊ |
| ␉␉␉␉␉Session::flash('message', 'You entered the wrong email or password. Try again!');␊ |
| ␉␉␉␉␉return \Redirect::to('login');␊ |
| ␊ |
| ␉␉␉␉}␊ |
|
| ␊ |
| ␉␉␉␉} else {␉ ␉␊ |
| ␊ |
| ␉␉␉␉␉Session::flash('message', 'You entered the wrong email or password. Try again!');␊ |
| ␉␉␉␉␉return \Redirect::to('login');␊ |
| ␊ |
| ␉␉␉␉}␊ |