hint='Allow any user successfully authorized by the strategy to access the wiki.'
:hint='$t(`admin:auth.selfRegistrationHint`)'
persistent-hint
)
v-switch.ml-3(
...
...
@@ -138,12 +138,12 @@
persistent-hint
)
v-combobox.ml-3.mt-3(
label='Limit to specific email domains'
:label='$t(`admin:auth.domainsWhitelist`)'
v-model='strategy.domainWhitelist'
prepend-icon='mail_outline'
outline
:disabled='!strategy.selfRegistration'
hint='A list of domains authorized to register. The user email address domain must match one of these to gain access.'
:hint='$t(`admin:auth.domainsWhitelistHint`)'
persistent-hint
small-chips
deletable-chips
...
...
@@ -157,10 +157,10 @@
:items='groups'
item-text='name'
item-value='id'
label='Assign to group'
:label='$t(`admin:auth.autoEnrollGroups`)'
v-model='strategy.autoEnrollGroups'
prepend-icon='people'
hint='Automatically assign new users to these groups.'
:hint='$t(`admin:auth.autoEnrollGroupsHint`)'
small-chips
persistent-hint
deletable-chips
...
...
@@ -170,36 +170,39 @@
)
template(v-if='strategy.useForm')
v-divider.mt-3
v-subheader.pl-0 Security
v-subheader.pl-0 {{$t('admin:auth.security')}}
v-switch.ml-3(
v-model='strategy.recaptcha'
:disabled='true'
label='Force all users to use Two-Factor Authentication (2FA)'
:label='$t(`admin:auth.force2fa`)'
color='primary'
hint='Users will be required to setup 2FA the first time they login and cannot be disabled by the user.'
:hint='$t(`admin:auth.force2faHint`)'
persistent-hint
)
v-card.mt-3.wiki-form.animated.fadeInUp.wait-p4s
v-toolbar(color='primary', dense, flat, dark)
.subheading Configuration Reference
.subheading {{$t('admin:auth.configReference')}}
v-card-text
.body-1 Some strategies may require some configuration values to be set on your provider. These are provided for reference only and may not be needed by the current strategy.
v-alert.mt-3.radius-7(v-if='host.length < 8', color='red', outline, :value='true', icon='warning') You must set a valid #[strong Site URL] first! Click on #[strong General] in the left sidebar.
hint='Themes affect how content pages are displayed. Other site sections (such as the editor or admin area) are not affected.'
:hint='$t(`admin:theme.siteThemeHint`)'
)
template(slot='item', slot-scope='data')
v-list-tile-avatar
...
...
@@ -38,51 +38,51 @@
v-divider.mt-3
v-switch(
v-model='darkMode'
label='Dark Mode'
:label='$t(`admin:theme.darkMode`)'
color='primary'
persistent-hint
hint='Not recommended for accessibility. May not be supported by all themes.'
:hint='$t(`admin:theme.darkModeHint`)'
)
v-card.wiki-form.mt-3.animated.fadeInUp.wait-p2s
v-toolbar(color='primary', dark, dense, flat)
v-toolbar-title
.subheading Code Injection
.subheading {{$t(`admin:theme.codeInjection`)}}
v-card-text
v-textarea(
v-model='config.injectCSS'
label='CSS Override'
:label='$t(`admin:theme.cssOverride`)'
outline
background-color='grey lighten-1'
color='primary'
persistent-hint
hint='CSS code to inject after system default CSS. Consider using custom themes if you have a large amount of css code. Injecting too much CSS code will result in poor page load performance! CSS will automatically be minified.'
:hint='$t(`admin:theme.cssOverrideHint`)'
auto-grow
)
v-textarea.mt-2(
v-model='config.injectHead'
label='Head HTML Injection'
:label='$t(`admin:theme.headHtmlInjection`)'
outline
background-color='grey lighten-1'
color='primary'
persistent-hint
hint='HTML code to be injected just before the closing head tag. Usually for script tags.'
:hint='$t(`admin:theme.headHtmlInjectionHint`)'
auto-grow
)
v-textarea.mt-2(
v-model='config.injectBody'
label='Body HTML Injection'
:label='$t(`admin:theme.bodyHtmlInjection`)'
outline
background-color='grey lighten-1'
color='primary'
persistent-hint
hint='HTML code to be injected just before the closing body tag.'