diff options
| author | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-12 08:42:21 +0300 |
|---|---|---|
| committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-12 08:42:21 +0300 |
| commit | f70fe28f644c037326a1d2c1fdffbf6d365e0a02 (patch) | |
| tree | 01b33b522cbdd13827d993088c7ef845825190e4 /src/components/mfa_form/totp_form.js | |
| parent | 3cc6f80628233c8b67912af868062f34bd49655a (diff) | |
mfa: fix login and recovery form
Diffstat (limited to 'src/components/mfa_form/totp_form.js')
| -rw-r--r-- | src/components/mfa_form/totp_form.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/mfa_form/totp_form.js b/src/components/mfa_form/totp_form.js index 778bf8dc..1ec7576b 100644 --- a/src/components/mfa_form/totp_form.js +++ b/src/components/mfa_form/totp_form.js @@ -10,15 +10,21 @@ export default { 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 |
