aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/login_form/login_form.js6
-rw-r--r--src/components/oauth_callback/oauth_callback.js4
2 files changed, 7 insertions, 3 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
}
diff --git a/src/components/oauth_callback/oauth_callback.js b/src/components/oauth_callback/oauth_callback.js
index 48ddd10d..2c6ca235 100644
--- a/src/components/oauth_callback/oauth_callback.js
+++ b/src/components/oauth_callback/oauth_callback.js
@@ -4,8 +4,10 @@ const oac = {
props: ['code'],
mounted () {
if (this.code) {
+ const { clientId } = this.$store.state.oauth
+
oauth.getToken({
- ...this.$store.state.oauth,
+ clientId,
instance: this.$store.state.instance.server,
code: this.code
}).then((result) => {