Allow discord login with default path
This commit is contained in:
@@ -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(
|
||||
{},
|
||||
'',
|
||||
|
||||
Reference in New Issue
Block a user