Redirecting to index if no login present.

This commit is contained in:
Alexey Skobkin 2015-05-31 10:05:08 +03:00
parent 58f8db6c97
commit d2711f2057

View file

@ -82,7 +82,7 @@ class UserController extends Controller
$login = $request->request->get('login');
if (!$login) {
throw new \InvalidArgumentException('No login information present');
return $this->redirectToRoute('index');
}
return $this->redirectToRoute('user_show', ['login' => $login]);
}