No longer sending extra data, renamed some properties

This commit is contained in:
Henry Jameson 2019-06-13 00:39:51 +03:00
parent 77511a5338
commit af75c6d1ea
4 changed files with 14 additions and 10 deletions

View file

@ -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
}