mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-07 18:08:50 +00:00
Compare commits
3 Commits
pr@dev@ass
...
v2.15.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ee6fef2bc | ||
|
|
f56a3f5085 | ||
|
|
66beab9ded |
@@ -73,8 +73,7 @@ export default {
|
|||||||
title: this.$t('users.setWeCom'),
|
title: this.$t('users.setWeCom'),
|
||||||
attrs: {
|
attrs: {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
label: this.$store.state.users.profile.is_wecom_bound ? this.$t('common.unbind') : this.$t('common.bind'),
|
label: this.$store.state.users.profile.is_wecom_bound ? this.$t('common.unbind') : this.$t('common.bind')
|
||||||
disabled: this.$store.state.users.profile.source !== 'local'
|
|
||||||
},
|
},
|
||||||
has: this.$store.getters.publicSettings.AUTH_WECOM,
|
has: this.$store.getters.publicSettings.AUTH_WECOM,
|
||||||
callbacks: {
|
callbacks: {
|
||||||
@@ -88,8 +87,7 @@ export default {
|
|||||||
title: this.$t('users.setDingTalk'),
|
title: this.$t('users.setDingTalk'),
|
||||||
attrs: {
|
attrs: {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
label: this.$store.state.users.profile.is_dingtalk_bound ? this.$t('common.unbind') : this.$t('common.bind'),
|
label: this.$store.state.users.profile.is_dingtalk_bound ? this.$t('common.unbind') : this.$t('common.bind')
|
||||||
disabled: this.$store.state.users.profile.source !== 'local'
|
|
||||||
},
|
},
|
||||||
has: this.$store.getters.publicSettings.AUTH_DINGTALK,
|
has: this.$store.getters.publicSettings.AUTH_DINGTALK,
|
||||||
callbacks: {
|
callbacks: {
|
||||||
@@ -103,8 +101,7 @@ export default {
|
|||||||
title: this.$t('users.setFeiShu'),
|
title: this.$t('users.setFeiShu'),
|
||||||
attrs: {
|
attrs: {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
label: this.$store.state.users.profile.is_feishu_bound ? this.$t('common.unbind') : this.$t('common.bind'),
|
label: this.$store.state.users.profile.is_feishu_bound ? this.$t('common.unbind') : this.$t('common.bind')
|
||||||
disabled: this.$store.state.users.profile.source !== 'local'
|
|
||||||
},
|
},
|
||||||
has: this.$store.getters.publicSettings.AUTH_FEISHU,
|
has: this.$store.getters.publicSettings.AUTH_FEISHU,
|
||||||
callbacks: {
|
callbacks: {
|
||||||
|
|||||||
@@ -50,6 +50,11 @@ export default {
|
|||||||
return !this.$store.getters.hasValidLicense
|
return !this.$store.getters.hasValidLicense
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
TICKETS_ENABLED: {
|
||||||
|
hidden: () => {
|
||||||
|
return !this.$store.getters.hasValidLicense
|
||||||
|
}
|
||||||
|
},
|
||||||
ANNOUNCEMENT_ENABLED: {
|
ANNOUNCEMENT_ENABLED: {
|
||||||
// label: '公告',
|
// label: '公告',
|
||||||
component: Announcement
|
component: Announcement
|
||||||
|
|||||||
@@ -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 [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user