feat: new login experience (#2139)
* feat: multiple auth instances * fix: auth setup + strategy initialization * feat: admin auth - add strategy * feat: redirect on login - group setting * feat: oauth2 generic - props definitions * feat: new login UI (wip) * feat: new login UI (wip) * feat: admin security login settings * feat: tabset editor indicators + print view improvements * fix: code styling
This commit is contained in:
@@ -253,9 +253,17 @@ module.exports = () => {
|
||||
throw new Error('Incorrect groups auto-increment configuration! Should start at 0 and increment by 1. Contact your database administrator.')
|
||||
}
|
||||
|
||||
// Load authentication strategies + enable local
|
||||
await WIKI.models.authentication.refreshStrategiesFromDisk()
|
||||
await WIKI.models.authentication.query().patch({ isEnabled: true }).where('key', 'local')
|
||||
// Load local authentication strategy
|
||||
await WIKI.models.authentication.query().insert({
|
||||
key: 'local',
|
||||
config: {},
|
||||
selfRegistration: false,
|
||||
domainWhitelist: {v: []},
|
||||
autoEnrollGroups: {v: []},
|
||||
order: 0,
|
||||
strategyKey: 'local',
|
||||
displayName: 'Local'
|
||||
})
|
||||
|
||||
// Load editors + enable default
|
||||
await WIKI.models.editors.refreshEditorsFromDisk()
|
||||
|
Reference in New Issue
Block a user