Skip to content
Permalink
Browse files

Fix registration

  • Loading branch information...
decke committed Aug 30, 2019
1 parent 3234de8 commit 53f968adbf504d270b938cc7b7c0ddb9e9592d88
Showing with 1 addition and 2 deletions.
  1. +1 −2 index.php
@@ -124,8 +124,7 @@
$this->flash->addMessageNow('error', 'EMail address already in use');
}
/* HACK: Slim-Flash hasMessage('error') does not see messages for next request */
if (!isset($_SESSION['slimFlash']['error'])) {
if (!$this->flash->hasMessage('error')) {
$user = new User();
$user->setPassword($request->getParam('password1'));
$user->email = $request->getParam('email');

0 comments on commit 53f968a

Please sign in to comment.
You can’t perform that action at this time.