- set social login credentials

- disallow registration refactoring
This commit is contained in:
Čarodej
2022-01-11 13:22:25 +01:00
parent 62cbcd14ed
commit 1c188081b3
23 changed files with 891 additions and 148 deletions

View File

@@ -1,6 +1,8 @@
import axios from 'axios'
import router from '/resources/js/router'
import Vue from 'vue'
import {events} from "../../bus";
import i18n from "../../i18n";
const defaultState = {
permission: 'master', // master | editor | visitor
@@ -49,13 +51,12 @@ const actions = {
})
},
socialiteRedirect: ({commit}, provider) => {
axios
.get(`/api/socialite/${provider}/redirect`)
.then((response) => {
if(response.data.url) {
.then(response => {
if (response.data.url) {
window.location.href = response.data.url
}
}
})
.catch(() => this.$isSomethingWrong())
},