From 7191eb0997af50d0a6537d4e393f164d25dfb9bf Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 24 Feb 2019 23:51:32 +0100 Subject: [PATCH] Initialize checks_out variable to False (missing before) --- dal/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dal/views.py b/dal/views.py index 5002eaa..5d643d2 100644 --- a/dal/views.py +++ b/dal/views.py @@ -279,6 +279,7 @@ class ResetRequest(View): user = b64decode(tmp_user) user_clean = user.decode('utf-8') # set checks_out = True if token is found in database + checks_out = False dbentries = ResetToken.objects.all().filter(user=user_clean) for entry in dbentries: if entry.token == token: