From 872bf30aa6d1b70206f99288272652a57f14a5e4 Mon Sep 17 00:00:00 2001 From: HuYang Date: Thu, 24 Dec 2020 17:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=B0=8F=E4=BF=AE=E6=94=B9=EF=BC=8C?= =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=AD=97=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_api/views.py b/app_api/views.py index 8a60e48..e18b580 100644 --- a/app_api/views.py +++ b/app_api/views.py @@ -33,7 +33,7 @@ def oauth0(request): if redirecturl == "" : # 必须用判断的方式,否则url里提交redirecturl= 还是为空 redirecturl = "/" - if ("" in [username,timestamp,randstr,hashstr]) == False : + if "" not in [username,timestamp,randstr,hashstr] : # 都不为空,才验证哦 # 1 、验证timestamp的时效性 nowtime = int (time.time())