function saml_sp_drupal_login_update_8302 in SAML Service Provider 3.x
Same name and namespace in other branches
- 8.3 modules/saml_sp_drupal_login/saml_sp_drupal_login.install \saml_sp_drupal_login_update_8302()
- 4.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);
}