No longer sending extra data, renamed some properties
This commit is contained in:
parent
77511a5338
commit
af75c6d1ea
4 changed files with 14 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue