Fix# correct error message when pending reg request exists

This commit is contained in:
Pellaeon Lin 2015-08-30 01:27:47 +08:00
parent b64640083e
commit 3741e150f1
1 changed files with 0 additions and 3 deletions

View File

@ -93,9 +93,6 @@ class RegisterController extends Controller {
)) ))
), 'error'); ), 'error');
} }
return new TemplateResponse('registration', 'message', array('msg' =>
$this->l10n->t('Verification email successfully sent.')
), 'guest');
return new TemplateResponse('', 'error', array( return new TemplateResponse('', 'error', array(
'errors' => array(array( 'errors' => array(array(
'error' => $this->l10n->t('There is already a pending registration with this email, a new verification email has been sent to the address.'), 'error' => $this->l10n->t('There is already a pending registration with this email, a new verification email has been sent to the address.'),