Parse auth config from /info
This commit is contained in:
parent
ffed665bbb
commit
769a18c29d
|
@ -1,5 +1,6 @@
|
|||
import {CONFIG} from '../mutation-types'
|
||||
import {HTTPFactory} from '@/http-common'
|
||||
import {objectToCamelCase} from '@/helpers/case'
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
|
@ -20,6 +21,16 @@ export default {
|
|||
privacyPolicyUrl: '',
|
||||
},
|
||||
caldavEnabled: false,
|
||||
auth: {
|
||||
local: {
|
||||
enabled: false,
|
||||
},
|
||||
openidConnect: {
|
||||
enabled: false,
|
||||
redirectUrl: '',
|
||||
providers: [],
|
||||
},
|
||||
},
|
||||
}),
|
||||
mutations: {
|
||||
[CONFIG](state, config) {
|
||||
|
@ -36,6 +47,7 @@ export default {
|
|||
state.legal.imprintUrl = config.legal.imprint_url
|
||||
state.legal.privacyPolicyUrl = config.legal.privacy_policy_url
|
||||
state.caldavEnabled = config.caldav_enabled
|
||||
state.auth = objectToCamelCase(config.auth)
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
|
|
Reference in New Issue