From af5f4d61b84338977467604543498aad6c9a3631 Mon Sep 17 00:00:00 2001 From: xingc Date: Thu, 24 Apr 2025 17:22:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(auth):=20=E6=B3=A8=E5=86=8C=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E5=A4=B4=E5=83=8F=E9=93=BE=E6=8E=A5=E9=9D=9E=E5=BF=85?= =?UTF-8?q?=E9=A1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/routers/auth/routes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/routers/auth/routes.py b/core/routers/auth/routes.py index 5157b42..4efdd5d 100644 --- a/core/routers/auth/routes.py +++ b/core/routers/auth/routes.py @@ -78,8 +78,7 @@ async def wechat_login( if user is None: checked = all([ payload.phone, - payload.nickname, - payload.avatar_url, + payload.nickname ]) if checked is False and wechat_session_str is None: await redis_conn.set(keyname, ujson.encode(wechat_session), ex=60 * 5)