diff options
| author | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-12 21:19:13 +0300 |
|---|---|---|
| committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-12 21:19:13 +0300 |
| commit | addacf36d1ee080158b7acba44b70d31e1edb3da (patch) | |
| tree | 8f3641e0d52274cde1d7eebab63a8b80290030ed /src/modules/auth_flow.js | |
| parent | f70fe28f644c037326a1d2c1fdffbf6d365e0a02 (diff) | |
mfa: removed unused code
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) { |
