From fd383b92f5701a1a43e141b7e60bb67c92b56368 Mon Sep 17 00:00:00 2001 From: wsczx Date: Mon, 7 Oct 2024 17:31:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E9=AA=8C=E8=AF=81=E6=96=B9=E5=BC=8F=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=BB=BA=E7=AB=8B=E8=BF=9E=E6=8E=A5=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/handler/link_auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/handler/link_auth.go b/server/handler/link_auth.go index fe0be6d..cabe728 100644 --- a/server/handler/link_auth.go +++ b/server/handler/link_auth.go @@ -115,8 +115,8 @@ func LinkAuth(w http.ResponseWriter, r *http.Request) { v := &dbdata.User{} err = dbdata.One("Username", cr.Auth.Username, v) if err != nil { - base.Error("Failed to get TOTP secret for user:", cr.Auth.Username, err) - http.Error(w, "Failed to get TOTP secret", http.StatusInternalServerError) + base.Info("正在使用第三方认证方式登录") + CreateSession(w, r, sessionData) return } // 用户otp验证