From 2b303b18fc6748c560e5b4335a70f25cf59b9528 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 31 Mar 2026 23:18:28 +0800 Subject: [PATCH] feat(login): support both password and Google SSO entry on login page --- src/pages/LoginPage.vue | 105 ++++++++++++++++++++++++++++++++++------ 1 file changed, 90 insertions(+), 15 deletions(-) diff --git a/src/pages/LoginPage.vue b/src/pages/LoginPage.vue index 6a792f9..847997e 100644 --- a/src/pages/LoginPage.vue +++ b/src/pages/LoginPage.vue @@ -4,7 +4,7 @@ @@ -17,17 +17,48 @@ class="mb-4" /> + + + + + + + + + 帳號密碼登入 + + + + + - 前往 Authentik 登入 + 使用 Google SSO 登入
-

會跳轉到 Authentik 輸入帳號密碼,成功後自動回來。

+

Google SSO 會跳轉到 Authentik,完成驗證後自動返回。

登入成功後 access token 會存於本機 localStorage。

@@ -35,20 +66,64 @@