aboutsummaryrefslogtreecommitdiff
path: root/src/components/mfa_form/totp_form.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shpuld@shpposter.club>2020-01-13 23:47:32 +0200
committerShpuld Shpuldson <shpuld@shpposter.club>2020-01-13 23:47:32 +0200
commitb32888194c2b9de286bcfff9998dae009cea224d (patch)
treeeb907b6457bc6416c9a8661039848aebf8f1727a /src/components/mfa_form/totp_form.js
parent33abbed5a1e1d1cf99d21d481b2a22481d7533b2 (diff)
parent7257189ea796d51117285814d32ed6138fdb3458 (diff)
fix merge conflicts
Diffstat (limited to 'src/components/mfa_form/totp_form.js')
-rw-r--r--src/components/mfa_form/totp_form.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/mfa_form/totp_form.js b/src/components/mfa_form/totp_form.js
index 778bf8dc..b774f2d0 100644
--- a/src/components/mfa_form/totp_form.js
+++ b/src/components/mfa_form/totp_form.js
@@ -7,18 +7,23 @@ export default {
}),
computed: {
...mapGetters({
- authApp: 'authFlow/app',
authSettings: 'authFlow/settings'
}),
- ...mapState({ instance: 'instance' })
+ ...mapState({
+ instance: 'instance',
+ oauth: 'oauth'
+ })
},
methods: {
...mapMutations('authFlow', ['requireRecovery', 'abortMFA']),
...mapActions({ login: 'authFlow/login' }),
clearError () { this.error = false },
submit () {
+ const { clientId, clientSecret } = this.oauth
+
const data = {
- app: this.authApp,
+ clientId,
+ clientSecret,
instance: this.instance.server,
mfaToken: this.authSettings.mfa_token,
code: this.code