diff --git a/controller/registercontroller.php b/controller/registercontroller.php index d6114f8..94d5e39 100644 --- a/controller/registercontroller.php +++ b/controller/registercontroller.php @@ -150,7 +150,15 @@ class RegisterController extends Controller { )) ), 'error'); } - return; + // TODO: below is not an error, should add "message" template + return new TemplateResponse('', 'error', array( + 'errors' => array(array( + 'error' => str_replace('{link}', + $this->urlgenerator->getAbsoluteUrl('/'), + $this->l10n->t('Your account has been successfully created, you can log in now.')), + 'hint' => '' + )) + ), 'error'); } } }