Skip to content

Commit

Permalink
[Login] Lost password service - do not display any error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
brusch committed Sep 1, 2021
1 parent 39baac3 commit d0a4de3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion bundles/AdminBundle/Controller/Admin/LoginController.php
Expand Up @@ -225,7 +225,6 @@ public function lostpasswordAction(Request $request, BruteforceProtectionHandler
if ($error) {
Logger::error('Lost password service: ' . $error);
$bruteforceProtectionHandler->addEntry($request->get('username'), $request);
$params['error'] = $error;
}
}

Expand Down
Expand Up @@ -2,13 +2,7 @@

{% block content %}

{% if error is defined %}
<div class="text error">
{{ error|trans([],'admin')|raw }}
</div>
{% endif %}

{% if error is not defined and (app.request.method == 'POST') %}
{% if app.request.method == 'POST' %}
<div class="text error">
{{ 'A temporary login link has been sent to your email address.'|trans([],'admin') }}
<br/>
Expand Down

0 comments on commit d0a4de3

Please sign in to comment.