Commit a64c9e97 authored by catch's avatar catch
Browse files

Issue #3479857 by amateescu: User login and password reset forms should be workspace-safe

(cherry picked from commit 044dcc53)
parent 4951a711
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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.
+2 −1
Original line number Diff line number Diff line
@@ -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;

+2 −1
Original line number Diff line number Diff line
@@ -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}