From 077d88f584e621e0f1f5cbeb2f39d65e12a8b298 Mon Sep 17 00:00:00 2001 From: protitude Date: Thu, 18 Jul 2024 17:29:42 -0600 Subject: [PATCH] oit: disable cache on login form --- oit.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oit.module b/oit.module index de2fc5f..f28aa66 100644 --- a/oit.module +++ b/oit.module @@ -285,7 +285,7 @@ function oit_form_alter(&$form, FormStateInterface $form_state, $form_id) { $form['login_words']['#markup'] = '
'; $form['login_words']['#weight'] = -10; if (!$show_login_form) { - $form['#cache'] = ['max-age' => 0]; + \Drupal::service('page_cache_kill_switch')->trigger(); $dest_get = Xss::filter(\Drupal::request()->get('destination')); $destination = !empty($dest_get) ? '?destination=' . $dest_get : ''; $response = new RedirectResponse('/saml_login' . $destination, 301);