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
1 changed files with 1 additions and 1 deletions

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]);
}