diff --git a/website/app/GeoKrety/Controller/Pages/RegistrationEmail.php b/website/app/GeoKrety/Controller/Pages/RegistrationEmail.php index bdbfdd209f..be4800f481 100644 --- a/website/app/GeoKrety/Controller/Pages/RegistrationEmail.php +++ b/website/app/GeoKrety/Controller/Pages/RegistrationEmail.php @@ -37,8 +37,10 @@ public function post(\Base $f3) { // Check Js Content if (empty($f3->get('POST.username2'))) { $f3->get('DB')->rollback(); + $f3->get('DB')->begin(); \Sugar\Event::instance()->emit('user.create-spam.js', $f3->get('POST')); \Flash::instance()->addMessage('Account successfully created', 'success'); + $f3->get('DB')->commit(); $f3->reroute('@home', die: true); }