diff options
| author | Henry Jameson <me@hjkos.com> | 2019-06-13 00:39:51 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-06-13 00:39:51 +0300 |
| commit | af75c6d1ea392477c647708dcd0e712c514a1b60 (patch) | |
| tree | 43511df68c767800bafc192361b207a78ab40286 /src/components/login_form | |
| parent | 77511a5338a36e824b2521ea972d654517d2aed0 (diff) | |
No longer sending extra data, renamed some properties
Diffstat (limited to 'src/components/login_form')
| -rw-r--r-- | src/components/login_form/login_form.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/login_form/login_form.js b/src/components/login_form/login_form.js index 0097e18a..7d49fade 100644 --- a/src/components/login_form/login_form.js +++ b/src/components/login_form/login_form.js @@ -11,8 +11,9 @@ const LoginForm = { }, methods: { oAuthLogin () { + const { clientId } = this.$store.state.oauth const data = { - ...this.$store.state.oauth, + clientId, instance: this.$store.state.instance.server, commit: this.$store.commit } @@ -21,8 +22,9 @@ const LoginForm = { .then((app) => { oauthApi.login({ ...app, ...data }) }) }, submit () { + const { clientId } = this.$store.state.oauth const data = { - ...this.$store.state.oauth, + clientId, instance: this.$store.state.instance.server, commit: this.$store.commit } |
