You are here

function saml_sp_drupal_login_update_8302 in SAML Service Provider 8.3

Same name and namespace in other branches
  1. 4.x modules/saml_sp_drupal_login/saml_sp_drupal_login.install \saml_sp_drupal_login_update_8302()
  2. 3.x modules/saml_sp_drupal_login/saml_sp_drupal_login.install \saml_sp_drupal_login_update_8302()

set new default path to redirect already authenticated user to if they try to authenticate again

File

modules/saml_sp_drupal_login/saml_sp_drupal_login.install, line 28
Update functions for the SAML SP Drupal Login module.

Code

function saml_sp_drupal_login_update_8302() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('saml_sp_drupal_login.config');
  $config
    ->set('logged_in_redirect', '<front>');
  $config
    ->save(TRUE);
}