function cas_update_8003 in CAS 8
Same name and namespace in other branches
- 2.x cas.install \cas_update_8003()
Disable the newly added "prevent normal login" feature.
File
- ./
cas.install, line 122 - The Drupal install file.
Code
function cas_update_8003() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('cas.settings');
// Even though this is a recommended feature to turn on, we don't want to
// break any sites that may be relying on normal login working for CASified
// accounts.
$config
->set('user_accounts.prevent_normal_login', FALSE);
$config
->save();
}