Commit 6dcad527 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 a63415bb
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
@@ -7,6 +7,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\user\UserInterface;
@@ -21,7 +22,7 @@
 *
 * @internal
 */
class UserPasswordForm extends FormBase {
class UserPasswordForm extends FormBase implements WorkspaceSafeFormInterface {

  /**
   * The user storage.
+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}