From 56bf03986aaf492859ad35c32ccdb982e8222528 Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Tue, 14 Oct 2014 21:35:12 +0800 Subject: [PATCH] Show success message after account created --- controller/registercontroller.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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'); } } }