Update# more helpful message if the email has already been taken

This commit is contained in:
Pellaeon Lin 2015-08-31 17:31:41 +08:00
parent 14fcdc6643
commit 59d1ae6038
1 changed files with 4 additions and 2 deletions

View File

@ -102,8 +102,10 @@ class RegisterController extends Controller {
if ( $this->config->getUsersForUserValue('settings', 'email', $email) ) { if ( $this->config->getUsersForUserValue('settings', 'email', $email) ) {
return new TemplateResponse('', 'error', array( return new TemplateResponse('', 'error', array(
'errors' => array(array( 'errors' => array(array(
'error' => $this->l10n->t('There is an existing user with this email'), 'error' => $this->l10n->t('A user has already taken this email, maybe you already have an account?'),
'hint' => '' 'hint' => str_replace(
'{login}', $this->urlgenerator->getAbsoluteURL('/'),
$this->l10n->t('You can <a href="{login}">log in now</a>.'))
)) ))
), 'error'); ), 'error');
} }