Show success message after account created

This commit is contained in:
Pellaeon Lin 2014-10-14 21:35:12 +08:00
parent 57f57bc636
commit 56bf03986a
1 changed files with 9 additions and 1 deletions

View File

@ -150,7 +150,15 @@ class RegisterController extends Controller {
)) ))
), 'error'); ), '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 <a href="{link}">log in now</a>.')),
'hint' => ''
))
), 'error');
} }
} }
} }