From c207dae863d093c89512bfe85845e43913ebede3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E4=BA=8C=E7=8C=9B?= Date: Fri, 9 Mar 2018 17:18:25 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E9=80=9A=E7=94=A8=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=88=90=E5=8A=9F=E5=90=8E=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=99=90=E5=88=B6=E8=AE=A1=E6=95=B0=E5=99=A8=E4=B8=8D=E6=B8=85?= =?UTF-8?q?=E9=9B=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/account/user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spug_api/apps/account/user.py b/spug_api/apps/account/user.py index 48cbcff..64cffa9 100644 --- a/spug_api/apps/account/user.py +++ b/spug_api/apps/account/user.py @@ -124,6 +124,7 @@ def login(): if user: if user.is_active: if user.verify_password(form.password): + login_limit.pop(form.username, None) token = uuid.uuid4().hex user.access_token = token user.token_expired = time.time() + 8 * 60 * 60