Fixed invalid mail error msg

This commit is contained in:
Johannes Starosta 2015-07-13 05:58:44 +02:00
parent 2891795b7a
commit db941b30aa
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class RegisterController extends Controller {
public function validateEmail() { public function validateEmail() {
$email = $this->request->getParam('email'); $email = $this->request->getParam('email');
if ( !filter_var($email, FILTER_VALIDATE_EMAIL) ) { if ( !filter_var($email, FILTER_VALIDATE_EMAIL) ) {
return new TemplateResponse('', 'error', array(array('error' => $this->l10n->t('Email address you entered is not valid'))), 'error'); // return new TemplateResponse('', 'error', array(array('error' => $this->l10n->t('Email address you entered is not valid'))), 'error');
return new TemplateResponse('', 'error', array( return new TemplateResponse('', 'error', array(
'errors' => array(array( 'errors' => array(array(
'error' => $this->l10n->t('Email address you entered is not valid'), 'error' => $this->l10n->t('Email address you entered is not valid'),