Skip to content

Commit

Permalink
fix: Commit in base registration
Browse files Browse the repository at this point in the history
  • Loading branch information
kumy committed Oct 7, 2023
1 parent caed3a6 commit b0265cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/app/GeoKrety/Controller/Pages/RegistrationEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b0265cc

Please sign in to comment.