Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Login] Lost password service - do not display any error messages #10223

Merged
merged 1 commit into from Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
[Login] Lost password service - do not display any error messages
  • Loading branch information
brusch committed Sep 1, 2021
commit d0a4de39cf05dce6af71f8ca039132bdfcbb0dce
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