MISC:https://github.com/pimcore/pimcore/pull/10223.patch


Download: text/x-diff
Original: github.com
From d0a4de39cf05dce6af71f8ca039132bdfcbb0dce Mon Sep 17 00:00:00 2001
From: Bernhard Rusch <[email protected]>
Date: Wed, 1 Sep 2021 22:13:22 +0200
Subject: [PATCH] [Login] Lost password service - do not display any error
 messages

---
 bundles/AdminBundle/Controller/Admin/LoginController.php  | 1 -
 .../Resources/views/Admin/Login/lostpassword.html.twig    | 8 +-------
 2 files changed, 1 insertion(+), 8 deletions(-)

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 %}
-        <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/>
© CVE.report 2021 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report