forked from AkkomaGang/admin-fe
Add :restrict_unauthenticated setting on Authentication tab
This commit is contained in:
parent
198ac3e035
commit
b60cd76350
2 changed files with 12 additions and 2 deletions
|
@ -11,10 +11,14 @@
|
||||||
<el-form :model="ldapData" :label-position="labelPosition" :label-width="labelWidth">
|
<el-form :model="ldapData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
<setting :setting-group="ldap" :data="ldapData"/>
|
<setting :setting-group="ldap" :data="ldapData"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-divider v-if="oauth2" class="divider thick-line"/>
|
<el-divider v-if="ldap" class="divider thick-line"/>
|
||||||
<el-form :model="oauth2Data" :label-position="labelPosition" :label-width="labelWidth">
|
<el-form :model="oauth2Data" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
<setting :setting-group="oauth2" :data="oauth2Data"/>
|
<setting :setting-group="oauth2" :data="oauth2Data"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
<el-divider v-if="oauth2" class="divider thick-line"/>
|
||||||
|
<el-form :model="restrictUnauthenticatedData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
|
<setting :setting-group="restrictUnauthenticated" :data="restrictUnauthenticatedData"/>
|
||||||
|
</el-form>
|
||||||
<div class="submit-button-container">
|
<div class="submit-button-container">
|
||||||
<el-button class="submit-button" type="primary" @click="onSubmit">Submit</el-button>
|
<el-button class="submit-button" type="primary" @click="onSubmit">Submit</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -81,6 +85,12 @@ export default {
|
||||||
},
|
},
|
||||||
pleromaAuthenticatorData() {
|
pleromaAuthenticatorData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Auth.Authenticator']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Auth.Authenticator']) || {}
|
||||||
|
},
|
||||||
|
restrictUnauthenticated() {
|
||||||
|
return this.settings.description.find(setting => setting.key === ':restrict_unauthenticated')
|
||||||
|
},
|
||||||
|
restrictUnauthenticatedData() {
|
||||||
|
return _.get(this.settings.settings, [':pleroma', ':restrict_unauthenticated']) || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -6,7 +6,7 @@ export const tabs = description => {
|
||||||
},
|
},
|
||||||
'authentication': {
|
'authentication': {
|
||||||
label: 'settings.auth',
|
label: 'settings.auth',
|
||||||
settings: [':auth', ':ldap', ':oauth2', 'Pleroma.Web.Auth.Authenticator']
|
settings: [':auth', ':ldap', ':oauth2', 'Pleroma.Web.Auth.Authenticator', ':restrict_unauthenticated']
|
||||||
},
|
},
|
||||||
'esshd': {
|
'esshd': {
|
||||||
label: 'settings.esshd',
|
label: 'settings.esshd',
|
||||||
|
|
Loading…
Reference in a new issue