Skip to content
Snippets Groups Projects

Issue #3275106: Remove destination parameter when user clicks on "Log in" to make sure they a sent to confirmation page

Open Issue #3275106: Remove destination parameter when user clicks on "Log in" to make sure they a sent to confirmation page
2 files
+ 25
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -5,6 +5,7 @@ namespace Drupal\passwordless\Form;
use Drupal\Core\Link;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Drupal\passwordless\Routing\ConfirmationPageRedirectResponse;
use Drupal\user\Form\UserPasswordForm;
/**
@@ -112,6 +113,7 @@ class PasswordlessLoginForm extends UserPasswordForm {
}
}
$form_state->setRedirect($redirect);
$redirect = new ConfirmationPageRedirectResponse(Url::fromRoute($redirect, [], ['absolute' => TRUE])->toString());
$form_state->setResponse($redirect);
}
}
Loading