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
1 changed files with 1 additions and 0 deletions

View File

@ -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: