Skip to content
Permalink
Browse files
[Login] Lost password service - do not display any error messages
  • Loading branch information
brusch committed Sep 1, 2021
1 parent 39baac3 commit d0a4de39cf05dce6af71f8ca039132bdfcbb0dce
Showing with 1 addition and 8 deletions.
  1. +0 −1 bundles/AdminBundle/Controller/Admin/LoginController.php
  2. +1 −7 bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.twig
@@ -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;
}
}

@@ -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/>

0 comments on commit d0a4de3

Please sign in to comment.