Initialize checks_out variable to False (missing before)
This commit is contained in:
parent
bcb3d6165d
commit
7191eb0997
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue