aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/login_form/login_form.js4
-rw-r--r--src/components/oauth_callback/oauth_callback.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/components/login_form/login_form.js b/src/components/login_form/login_form.js
index b1899666..ffdd5504 100644
--- a/src/components/login_form/login_form.js
+++ b/src/components/login_form/login_form.js
@@ -1,4 +1,4 @@
-import oauthApi from "../../services/new_api/oauth.js";
+import oauthApi from '../../services/new_api/oauth.js'
const LoginForm = {
data: () => ({
user: {},
@@ -14,7 +14,7 @@ const LoginForm = {
oauth: this.$store.state.oauth,
instance: this.$store.state.instance.server,
commit: this.$store.commit
- });
+ })
},
submit () {
this.$store.dispatch('loginUser', this.user).then(
diff --git a/src/components/oauth_callback/oauth_callback.js b/src/components/oauth_callback/oauth_callback.js
index 60a15412..7a5132ad 100644
--- a/src/components/oauth_callback/oauth_callback.js
+++ b/src/components/oauth_callback/oauth_callback.js
@@ -9,8 +9,8 @@ const oac = {
instance: this.$store.state.instance.server,
code: this.code
}).then((result) => {
- this.$store.commit("setToken", result.access_token)
- this.$store.dispatch("loginUser", result.access_token)
+ this.$store.commit('setToken', result.access_token)
+ this.$store.dispatch('loginUser', result.access_token)
this.$router.push('/main/friends')
})
}