From bde2c01a00973634a96e73041188b414f0734b74 Mon Sep 17 00:00:00 2001 From: catch <6915-catch@users.noreply.drupalcode.org> Date: Fri, 18 Oct 2024 12:08:11 +0100 Subject: [PATCH] Issue #3479857 by amateescu: User login and password reset forms should be workspace-safe (cherry picked from commit 044dcc532b52ac99909d6444934d0bcba24664e7) --- core/modules/user/src/Form/UserLoginForm.php | 3 ++- core/modules/user/src/Form/UserPasswordForm.php | 3 ++- core/modules/user/src/Form/UserPasswordResetForm.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/modules/user/src/Form/UserLoginForm.php b/core/modules/user/src/Form/UserLoginForm.php index d2780de747a9..163030ce2515 100644 --- a/core/modules/user/src/Form/UserLoginForm.php +++ b/core/modules/user/src/Form/UserLoginForm.php @@ -4,6 +4,7 @@ use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormStateInterface; +use Drupal\Core\Form\WorkspaceSafeFormInterface; use Drupal\Core\Render\RendererInterface; use Drupal\Core\Render\BareHtmlPageRendererInterface; use Drupal\Core\Url; @@ -19,7 +20,7 @@ * * @internal */ -class UserLoginForm extends FormBase { +class UserLoginForm extends FormBase implements WorkspaceSafeFormInterface { /** * The user flood control service. diff --git a/core/modules/user/src/Form/UserPasswordForm.php b/core/modules/user/src/Form/UserPasswordForm.php index 2c29d664cd6a..93ef0e6bbdf4 100644 --- a/core/modules/user/src/Form/UserPasswordForm.php +++ b/core/modules/user/src/Form/UserPasswordForm.php @@ -8,6 +8,7 @@ use Drupal\Core\Flood\FloodInterface; use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormStateInterface; +use Drupal\Core\Form\WorkspaceSafeFormInterface; use Drupal\Core\Language\LanguageManagerInterface; use Drupal\Core\Render\Element\Email; use Drupal\Core\TypedData\TypedDataManagerInterface; @@ -23,7 +24,7 @@ * * @internal */ -class UserPasswordForm extends FormBase { +class UserPasswordForm extends FormBase implements WorkspaceSafeFormInterface { use DeprecatedServicePropertyTrait; diff --git a/core/modules/user/src/Form/UserPasswordResetForm.php b/core/modules/user/src/Form/UserPasswordResetForm.php index 9dde77d5995f..bfa88d0c95d6 100644 --- a/core/modules/user/src/Form/UserPasswordResetForm.php +++ b/core/modules/user/src/Form/UserPasswordResetForm.php @@ -3,6 +3,7 @@ namespace Drupal\user\Form; use Drupal\Core\Form\FormStateInterface; +use Drupal\Core\Form\WorkspaceSafeFormInterface; use Drupal\Core\Session\AccountInterface; use Drupal\Core\Form\FormBase; use Drupal\Core\Url; @@ -14,7 +15,7 @@ * * @internal */ -class UserPasswordResetForm extends FormBase { +class UserPasswordResetForm extends FormBase implements WorkspaceSafeFormInterface { /** * {@inheritdoc} -- GitLab