update routes + surprise :P

This commit is contained in:
Malibu
2015-02-15 17:10:23 +01:00
parent 115005f2ca
commit e5cb54f8de
9 changed files with 87 additions and 14 deletions

View File

@ -22,4 +22,29 @@ class GameController extends Controller {
return view('home');
}
/**
* Show referent games
*
* @param String $id
* @return Response
*/
public function showReferentGames($id)
{
return view('referent_games', ['referent' => $id]);
}
/**
* Show one referent game
*
* @param String $id
* @param String $idGame
* @return Response
*/
public function showOneReferentGame($id, $idGame)
{
return view('one_referent_game', ['referent' => $id, 'game' => $idGame]);
}
}

View File

@ -71,9 +71,9 @@ class LoginController extends Controller {
switch ($response = Password::remind(Input::only('email')))
{
case Password::INVALID_USER:
return redirect('oublie')->withErrors($response)->withInput();
return redirect('forgotten')->withErrors($response)->withInput();
case Password::REMINDER_SENT:
return redirect('oublie')->withStatus($response)->withInput();
return redirect('forgotten')->withStatus($response)->withInput();
}
}