Permalink
Browse files

Cannot use variable $request twice

  • Loading branch information...
Karel Souffriau
Karel Souffriau committed Dec 27, 2016
1 parent 68f29e7 commit c27d321c6d09d94eea12cb291c11f88ae818f7da
Showing with 1 addition and 1 deletion.
  1. +1 −1 routes.php
@@ -10,7 +10,7 @@
]);
});
$router->post('', function() use ($htmlTemplate, $csrfToken, $request, $user, $request) {
$router->post('', function() use ($htmlTemplate, $csrfToken, $request, $user) {
if ($csrfToken->validate($request->post('csrfToken')) && $user->login($request->post('username'), $request->post('password'), $request->getIp())) {
header('Location: ' . $request->getUrl());
exit;

0 comments on commit c27d321

Please sign in to comment.