login refactor

This commit is contained in:
Čarodej
2022-01-10 09:09:20 +01:00
parent ead4f65e1a
commit 0d8f1b64a7
7 changed files with 303 additions and 102 deletions
@@ -1,7 +1,5 @@
<template>
<div>
<Spinner/>
</div>
<Spinner/>
</template>
<script>
@@ -9,7 +7,9 @@ import Spinner from '/resources/js/components/FilesView/Spinner'
export default {
name: 'SocialiteCallback',
components: {Spinner},
components: {
Spinner
},
created () {
axios
.get(`/api${this.$route.fullPath}`)
@@ -21,7 +21,7 @@ export default {
// Go to files page
this.$router.push({name: 'Files'})
})
.catch((error) => {
.catch(() => {
this.$isSomethingWrong()