Allow discord login with default path
This commit is contained in:
@@ -14,15 +14,11 @@ const route = useRoute()
|
|||||||
let username = ref<string>("legonzaur");
|
let username = ref<string>("legonzaur");
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
if (route.path != "/login") {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const code = route.query.code
|
const code = route.query.code
|
||||||
if (!code) { return }
|
if (!code) { return }
|
||||||
if (Array.isArray(code)) { return }
|
if (Array.isArray(code)) { return }
|
||||||
await setup_websocket()
|
await setup_websocket()
|
||||||
oauth2_register_discord(code)
|
oauth2_register_discord(code)
|
||||||
|
|
||||||
history.pushState(
|
history.pushState(
|
||||||
{},
|
{},
|
||||||
'',
|
'',
|
||||||
|
|||||||
Reference in New Issue
Block a user