aboutsummaryrefslogtreecommitdiff
path: root/src/components/mfa_form/recovery_form.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2020-01-03 09:05:48 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2020-01-03 09:05:48 +0000
commit215662afdee3935f66e5fbd73260e2039f5216de (patch)
tree817b578e53b884c4b5facd63c166b522f59a8978 /src/components/mfa_form/recovery_form.js
parentc3e7806acbd32483eab497a347f947158ab8febf (diff)
parent1a82a00a2b45041c35b72ab16ee34c120341b652 (diff)
Merge branch 'develop' into 'fix-move-type-notification'
# Conflicts: # static/fontello.json
Diffstat (limited to 'src/components/mfa_form/recovery_form.js')
-rw-r--r--src/components/mfa_form/recovery_form.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/mfa_form/recovery_form.js b/src/components/mfa_form/recovery_form.js
index 7a3cc22d..b25c65dd 100644
--- a/src/components/mfa_form/recovery_form.js
+++ b/src/components/mfa_form/recovery_form.js
@@ -8,18 +8,23 @@ export default {
}),
computed: {
...mapGetters({
- authApp: 'authFlow/app',
authSettings: 'authFlow/settings'
}),
- ...mapState({ instance: 'instance' })
+ ...mapState({
+ instance: 'instance',
+ oauth: 'oauth'
+ })
},
methods: {
...mapMutations('authFlow', ['requireTOTP', '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