From 39de2c36a65749336cf1dc84290454142e4e4fe9 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 26 Nov 2022 19:07:31 +0100 Subject: [PATCH] feat: allow key enter for sign in (#142) --- components/user/UserSignIn.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/user/UserSignIn.vue b/components/user/UserSignIn.vue index 1cb2bf67..8df161db 100644 --- a/components/user/UserSignIn.vue +++ b/components/user/UserSignIn.vue @@ -4,6 +4,9 @@ import { DEFAULT_SERVER } from '~/constants' let server = $ref('') async function oauth() { + if (!server) + return + server = server.split('/')[0] location.href = `/api/${server || DEFAULT_SERVER}/login` } @@ -22,7 +25,7 @@ async function handleInput() {
Mastodon Server Name
https:// - +