From da2228226efa72810eae73122ec37264db40cff2 Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Fri, 3 Oct 2014 15:39:06 +0800 Subject: [PATCH] Render successful message after email sent --- controller/registercontroller.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/controller/registercontroller.php b/controller/registercontroller.php index 2c7adf5..7f17676 100644 --- a/controller/registercontroller.php +++ b/controller/registercontroller.php @@ -87,7 +87,13 @@ class RegisterController extends Controller { \OC_Template::printErrorPage( 'A problem occurs during sending the e-mail please contact your administrator.'); return; } - $this->askEmail('', true); + // TODO: below is not an error, should add "message" template + return new TemplateResponse('', 'error', array( + 'errors' => array(array( + 'error' => $this->l10n->t('Verification email successfully sent.'), + 'hint' => '' + )) + ), 'error'); } /**