Removed commented out bug in validateMail
This commit is contained in:
parent
affbbe7566
commit
a0b26e0a46
|
|
@ -67,7 +67,6 @@ class RegisterController extends Controller {
|
|||
public function validateEmail() {
|
||||
$email = $this->request->getParam('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(
|
||||
'errors' => array(array(
|
||||
'error' => $this->l10n->t('Email address you entered is not valid'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue