Fix# unescaped error msg when email is already taken

This commit is contained in:
Pellaeon Lin 2019-03-17 13:45:54 +00:00
parent c9bbca5e33
commit 2678a133dc
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ class RegisterController extends Controller {
), 'guest'); ), 'guest');
} }
} catch (RegistrationException $e) { } catch (RegistrationException $e) {
return $this->renderError($e->getMessage(), $e->getHint()); return new TemplateResponse('registration', 'message', array('msg' =>
$e->getMessage().'<br/>'.$e->getHint()
), 'guest');
} }