You are here

function cas_post_update_8001 in CAS 8

Same name and namespace in other branches
  1. 2.x cas.post_update.php \cas_post_update_8001()

Add prevent normal login and restrict password management error messages.

File

./cas.post_update.php, line 11
Post-update functions for CAS module.

Code

function cas_post_update_8001() {
  \Drupal::configFactory()
    ->getEditable('cas.settings')
    ->set('error_handling.message_prevent_normal_login', 'This account must log in using <a href="[cas:login-url]">CAS</a>.')
    ->set('error_handling.message_restrict_password_management', 'The requested account is associated with CAS and its password cannot be managed from this website.')
    ->save();
}