Skip to content

Commit

Permalink
fix(UI): set value to the require_provisioned_account option also in …
Browse files Browse the repository at this point in the history
…env mode

Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Dec 5, 2024
1 parent 3641fdf commit 88aeaf7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/Settings/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,14 @@ public function getForm() {
}

$type = $this->config->getAppValue('user_saml', 'type');

$generalSettings['require_provisioned_account'] = [
'text' => $this->l10n->t('Only allow authentication if an account exists on some other backend (e.g. LDAP).', [$this->defaults->getName()]),
'type' => 'checkbox',
'global' => true,
'value' => $this->config->getAppValue('user_saml', 'general-require_provisioned_account', '0')
];
if ($type === 'saml') {
$generalSettings['require_provisioned_account'] = [
'text' => $this->l10n->t('Only allow authentication if an account exists on some other backend (e.g. LDAP).', [$this->defaults->getName()]),
'type' => 'checkbox',
'global' => true,
'value' => $this->config->getAppValue('user_saml', 'general-require_provisioned_account', '0')
];
$generalSettings['idp0_display_name'] = [
'text' => $this->l10n->t('Optional display name of the identity provider (default: "SSO & SAML log in")'),
'type' => 'line',
Expand Down

0 comments on commit 88aeaf7

Please sign in to comment.