Skip to content

Commit

Permalink
Merge pull request #9197 from nextcloud/fix/provisioning/master-passw…
Browse files Browse the repository at this point in the history
…ord-disabled-required

fix(provisioning): Do not require master password if disabled
  • Loading branch information
ChristophWurst authored Dec 27, 2023
2 parents 09b8929 + 410e9bb commit c2a55a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/settings/ProvisioningSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
v-model="masterPassword"
:disabled="loading"
type="password"
required>
:required="masterPasswordEnabled">
<label for="mail-master-password"> {{ t('mail', 'Master password') }} </label>
</div>
</div>
Expand Down Expand Up @@ -402,7 +402,7 @@ export default {
smtpPort: this.setting.smtpPort || 587,
smtpUser: this.setting.smtpUser || '%USERID%domain.com',
smtpSslMode: this.setting.smtpSslMode || 'tls',
masterPasswordEnabled: this.setting.masterPasswordEnabled || '',
masterPasswordEnabled: this.setting.masterPasswordEnabled === true,
masterPassword: this.setting.masterPassword || '',
sieveEnabled: this.setting.sieveEnabled || '',
sieveHost: this.setting.sieveHost || '',
Expand Down

0 comments on commit c2a55a2

Please sign in to comment.