Render successful message after email sent

This commit is contained in:
Pellaeon Lin 2014-10-03 15:39:06 +08:00
parent a7a6bd28e0
commit da2228226e
1 changed files with 7 additions and 1 deletions

View File

@ -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');
}
/**