Merge branch 'migrate/auth-flow' into 'develop'
Migrate auth flow module to pinia See merge request pleroma/pleroma-fe!2169
This commit is contained in:
commit
37225ae8db
9 changed files with 91 additions and 110 deletions
|
|
@ -21,6 +21,7 @@ import { useOAuthStore } from 'src/stores/oauth'
|
|||
import { useI18nStore } from 'src/stores/i18n'
|
||||
import { useInterfaceStore } from 'src/stores/interface'
|
||||
import { useAnnouncementsStore } from 'src/stores/announcements'
|
||||
import { useAuthFlowStore } from 'src/stores/auth_flow'
|
||||
|
||||
let staticInitialResults = null
|
||||
|
||||
|
|
@ -156,7 +157,7 @@ const setSettings = async ({ apiConfig, staticConfig, store }) => {
|
|||
: config.logoMargin
|
||||
})
|
||||
copyInstanceOption('logoLeft')
|
||||
store.commit('authFlow/setInitialStrategy', config.loginMethod)
|
||||
useAuthFlowStore().setInitialStrategy(config.loginMethod)
|
||||
|
||||
copyInstanceOption('redirectRootNoLogin')
|
||||
copyInstanceOption('redirectRootLogin')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue