[ticket/11327] Use http_exception instead of trigger_error

PHPBB3-11327
This commit is contained in:
Marc Alexander 2019-09-01 11:36:57 +02:00
parent 8048d817ca
commit f920336be4
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -116,7 +116,10 @@ class reset_password
if (!$this->config['allow_password_reset']) if (!$this->config['allow_password_reset'])
{ {
trigger_error($this->language->lang('UCP_PASSWORD_RESET_DISABLED', '<a href="mailto:' . htmlspecialchars($this->config['board_contact']) . '">', '</a>')); throw new http_exception(Response::HTTP_OK, 'UCP_PASSWORD_RESET_DISABLED', [
'<a href="mailto:' . htmlspecialchars($this->config['board_contact']) . '">',
'</a>'
]);
} }
} }