function miniorange_2fa_update_8217 in Google Authenticator / 2 Factor Authentication - 2FA 8.2
File
- ./
miniorange_2fa.install, line 60
Code
function miniorange_2fa_update_8217() {
$editConfig = \Drupal::configFactory()
->getEditable('miniorange_2fa.settings');
$editConfig
->set('allow_end_users_to_decide', FALSE);
$editConfig
->set('end_users_can_decide_without_rules', FALSE);
$editConfig
->set('skip_not_allowed_for_secured_users', FALSE)
->save();
$newField = [
'description' => 'Boolean indicating whether the MFA is enabled.',
'type' => 'int',
'not null' => FALSE,
'default' => 1,
'size' => 'tiny',
];
$schema = Database::getConnection()
->schema();
$schema
->addField('UserAuthenticationType', 'enabled', $newField);
}