Initialize checks_out variable to False (missing before)

This commit is contained in:
PCoder 2019-02-24 23:51:32 +01:00
parent bcb3d6165d
commit 7191eb0997

View file

@ -279,6 +279,7 @@ class ResetRequest(View):
user = b64decode(tmp_user) user = b64decode(tmp_user)
user_clean = user.decode('utf-8') user_clean = user.decode('utf-8')
# set checks_out = True if token is found in database # set checks_out = True if token is found in database
checks_out = False
dbentries = ResetToken.objects.all().filter(user=user_clean) dbentries = ResetToken.objects.all().filter(user=user_clean)
for entry in dbentries: for entry in dbentries:
if entry.token == token: if entry.token == token: