aboutsummaryrefslogtreecommitdiff
path: root/src/components/oauth_callback/oauth_callback.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-06-22 07:47:30 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-06-22 07:47:30 +0000
commit5a8f3dddfde863a87a3a4f0ed9c7433935520c59 (patch)
treeea94eed3cb7f5fe268be6cf5ae22b5d6b917bb49 /src/components/oauth_callback/oauth_callback.js
parent03a27c6d4864758d72f127138fa21961ef2b61fa (diff)
parentbd377148ade7aaf26652dc14ee77683b7e6c8c5a (diff)
Merge branch 'fix-token-auth-login' into 'develop'
Fix broken token authentication See merge request pleroma/pleroma-fe!846
Diffstat (limited to 'src/components/oauth_callback/oauth_callback.js')
-rw-r--r--src/components/oauth_callback/oauth_callback.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/oauth_callback/oauth_callback.js b/src/components/oauth_callback/oauth_callback.js
index 2c6ca235..a3c7b7f9 100644
--- a/src/components/oauth_callback/oauth_callback.js
+++ b/src/components/oauth_callback/oauth_callback.js
@@ -4,10 +4,11 @@ const oac = {
props: ['code'],
mounted () {
if (this.code) {
- const { clientId } = this.$store.state.oauth
+ const { clientId, clientSecret } = this.$store.state.oauth
oauth.getToken({
clientId,
+ clientSecret,
instance: this.$store.state.instance.server,
code: this.code
}).then((result) => {