diff --git a/bundles/AdminBundle/Controller/Admin/LoginController.php b/bundles/AdminBundle/Controller/Admin/LoginController.php index 543b4bb67b8..9649214910b 100644 --- a/bundles/AdminBundle/Controller/Admin/LoginController.php +++ b/bundles/AdminBundle/Controller/Admin/LoginController.php @@ -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; } } diff --git a/bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.twig b/bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.twig index fe3dd0e7847..797dfd7ee10 100644 --- a/bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.twig +++ b/bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.twig @@ -2,13 +2,7 @@ {% block content %} - {% if error is defined %} -
- {{ error|trans([],'admin')|raw }} -
- {% endif %} - - {% if error is not defined and (app.request.method == 'POST') %} + {% if app.request.method == 'POST' %}
{{ 'A temporary login link has been sent to your email address.'|trans([],'admin') }}