mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-30 12:55:37 +00:00
fix: 修改基本设置项
fix: 修改基本设置项
This commit is contained in:
parent
f56a3f5085
commit
2ee6fef2bc
@ -39,17 +39,12 @@ export default {
|
|||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
fields: [
|
fields: [
|
||||||
'SECURITY_LOGIN_LIMIT_COUNT', 'SECURITY_LOGIN_LIMIT_TIME', 'LOGIN_CONFIRM_ENABLE',
|
'SECURITY_LOGIN_LIMIT_COUNT', 'SECURITY_LOGIN_LIMIT_TIME',
|
||||||
'USER_LOGIN_SINGLE_MACHINE_ENABLED', 'ONLY_ALLOW_EXIST_USER_AUTH',
|
'USER_LOGIN_SINGLE_MACHINE_ENABLED', 'ONLY_ALLOW_EXIST_USER_AUTH',
|
||||||
'ONLY_ALLOW_AUTH_FROM_SOURCE'
|
'ONLY_ALLOW_AUTH_FROM_SOURCE'
|
||||||
],
|
],
|
||||||
successUrl: { name: 'Settings', params: { activeMenu: 'EmailContent' }},
|
successUrl: { name: 'Settings', params: { activeMenu: 'EmailContent' }},
|
||||||
fieldsMeta: {
|
fieldsMeta: {
|
||||||
LOGIN_CONFIRM_ENABLE: {
|
|
||||||
hidden: () => {
|
|
||||||
return !this.$store.getters.hasValidLicense
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
url: '/api/v1/settings/setting/?category=security'
|
url: '/api/v1/settings/setting/?category=security'
|
||||||
}
|
}
|
||||||
|
@ -99,26 +99,13 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
LOGIN_CONFIRM_ENABLE: {
|
|
||||||
hidden: () => {
|
|
||||||
return !this.$store.getters.hasValidLicense
|
|
||||||
}
|
|
||||||
},
|
|
||||||
SECURITY_WATERMARK_ENABLED: {
|
|
||||||
hidden: () => {
|
|
||||||
return !this.$store.getters.hasValidLicense
|
|
||||||
}
|
|
||||||
},
|
|
||||||
PasswordRule: {
|
PasswordRule: {
|
||||||
label: this.$t('setting.PasswordCheckRule'),
|
label: this.$t('setting.PasswordCheckRule'),
|
||||||
component: PasswordRule
|
component: PasswordRule
|
||||||
},
|
},
|
||||||
AuthLimit: {
|
AuthLimit: {
|
||||||
label: this.$t('setting.AuthLimit'),
|
label: this.$t('setting.AuthLimit'),
|
||||||
component: AuthLimit,
|
component: AuthLimit
|
||||||
hidden: () => {
|
|
||||||
return !this.$store.getters.hasValidLicense
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: '/api/v1/settings/setting/?category=security'
|
url: '/api/v1/settings/setting/?category=security'
|
||||||
|
@ -195,9 +195,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
loginConfirmEnabled() {
|
|
||||||
return this.$store.getters.publicSettings.LOGIN_CONFIRM_ENABLE
|
|
||||||
},
|
|
||||||
detailItems() {
|
detailItems() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user