diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-12-13 10:18:50 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-12-13 10:18:50 +0000 |
| commit | 9789123b1c5e308445b24dd9fdddd9ea9bf7ca90 (patch) | |
| tree | 50655a9d29d287127d34bbaa6c2e2da7c7cc6be9 /src/modules/auth_flow.js | |
| parent | 051b9703dffa785eb3b0fde29d2ceab3fe1255ba (diff) | |
| parent | addacf36d1ee080158b7acba44b70d31e1edb3da (diff) | |
Merge branch 'mfa/login_form' into 'develop'
mfa: fix login and recovery form
See merge request pleroma/pleroma-fe!1031
Diffstat (limited to 'src/modules/auth_flow.js')
| -rw-r--r-- | src/modules/auth_flow.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/auth_flow.js b/src/modules/auth_flow.js index d0a90feb..956d40e8 100644 --- a/src/modules/auth_flow.js +++ b/src/modules/auth_flow.js @@ -7,7 +7,6 @@ const RECOVERY_STRATEGY = 'recovery' // initial state const state = { - app: null, settings: {}, strategy: PASSWORD_STRATEGY, initStrategy: PASSWORD_STRATEGY // default strategy from config @@ -16,14 +15,10 @@ const state = { const resetState = (state) => { state.strategy = state.initStrategy state.settings = {} - state.app = null } // getters const getters = { - app: (state, getters) => { - return state.app - }, settings: (state, getters) => { return state.settings }, @@ -55,9 +50,8 @@ const mutations = { requireToken (state) { state.strategy = TOKEN_STRATEGY }, - requireMFA (state, { app, settings }) { + requireMFA (state, { settings }) { state.settings = settings - state.app = app state.strategy = TOTP_STRATEGY // default strategy of MFA }, requireRecovery (state) { |
