aboutsummaryrefslogtreecommitdiff
path: root/src/components/registration/registration.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/registration/registration.js')
-rw-r--r--src/components/registration/registration.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js
index cdcc33c9..f7f8a720 100644
--- a/src/components/registration/registration.js
+++ b/src/components/registration/registration.js
@@ -33,10 +33,11 @@ const registration = {
}
oauthApi.getOrCreateApp(data).then((app) => {
oauthApi.getTokenWithCredentials(
- {app,
- instance: data.instance,
- username: this.user.username,
- password: this.user.password})
+ {
+ app,
+ instance: data.instance,
+ username: this.user.username,
+ password: this.user.password})
.then((result) => {
this.$store.commit('setToken', result.access_token)
this.$store.dispatch('loginUser', result.access_token)