Only enable LdapServer input fields if feature is enabled
This commit is contained in:
@@ -91,14 +91,14 @@ onMounted(async () => {
|
||||
<FormGroup>
|
||||
<label for="secretInput">{{ $t('users.exposedLdap.secret.label') }}</label>
|
||||
<div description v-html="$t('users.exposedLdap.secret.description', { userDN: 'cn=admin,ou=system,dc=cloudron' })"></div>
|
||||
<PasswordInput id="secretInput" v-model="secret" required />
|
||||
<PasswordInput id="secretInput" v-model="secret" required :disabled="!enabled" />
|
||||
<div class="has-error" v-show="editError.secret">{{ editError.secret }}</div>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<label for="allowlistInput">{{ $t('users.exposedLdap.ipRestriction.label') }}</label>
|
||||
<div description v-html="$t('users.exposedLdap.ipRestriction.description')"></div>
|
||||
<textarea id="allowlistInput" v-model="allowlist" rows="4" required></textarea>
|
||||
<textarea id="allowlistInput" v-model="allowlist" rows="4" required :disabled="!enabled"></textarea>
|
||||
<small style="helper-text">{{ $t('users.exposedLdap.ipRestriction.placeholder') }}</small>
|
||||
<div class="has-error" v-show="editError.allowlist">{{ editError.allowlist }}</div>
|
||||
</FormGroup>
|
||||
|
||||
Reference in New Issue
Block a user