- 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
+11 -4
View File
@@ -4,6 +4,8 @@
<script>
import Spinner from '/resources/js/components/FilesView/Spinner'
import {events} from "../../bus";
import i18n from "../../i18n";
export default {
name: 'SocialiteCallback',
@@ -21,11 +23,16 @@ export default {
// Go to files page
this.$router.push({name: 'Files'})
})
.catch(() => {
this.$isSomethingWrong()
.catch(error => {
if (error.response.status === 401) {
events.$emit('alert:open', {
title: error.response.data.message,
})
} else {
this.$isSomethingWrong()
}
this.$router.push({name: 'Homepage'})
this.$router.push({name: 'SignIn'})
})
}