Allow discord login with default path

This commit is contained in:
2024-05-09 22:09:33 +02:00
parent 2f1da6d69d
commit b3252aab94
-4
View File
@@ -14,15 +14,11 @@ const route = useRoute()
let username = ref<string>("legonzaur");
onMounted(async () => {
if (route.path != "/login") {
return
}
const code = route.query.code
if (!code) { return }
if (Array.isArray(code)) { return }
await setup_websocket()
oauth2_register_discord(code)
history.pushState(
{},
'',