From fc337292bc2949e423d54674d59723383343b659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Tue, 7 May 2024 22:51:43 +0800 Subject: [PATCH] feat: add QQLogin --- src/webui/src/router/auth.ts | 3 +- static/QQLogin.html | 53 ++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/src/webui/src/router/auth.ts b/src/webui/src/router/auth.ts index f1e1f1b1..c61367ec 100644 --- a/src/webui/src/router/auth.ts +++ b/src/webui/src/router/auth.ts @@ -1,8 +1,9 @@ import { Router } from 'express'; -import { LoginHandler, LogoutHandler } from '../api/Auth'; +import { LoginHandler, LogoutHandler, checkHandler } from '../api/Auth'; const router = Router(); router.post('/login', LoginHandler); +router.post('/check', checkHandler); router.post('/logout', LogoutHandler); export { router as AuthRouter }; \ No newline at end of file diff --git a/static/QQLogin.html b/static/QQLogin.html index 3d4a571c..6fa79860 100644 --- a/static/QQLogin.html +++ b/static/QQLogin.html @@ -161,6 +161,59 @@