Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RupakBiswas-2304 committed Jun 23, 2022
1 parent 5291d0b commit 3a52c1f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified pygoat/db.sqlite3
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h2>
</br>
&emsp;&emsp;cookie = jwt.encode(payload, SECRET_KEY, algorithm='HS256')</br>
&emsp;&emsp;response = render(request,"Lab/sec_mis/sec_mis_lab3.html", {"admin":False} )</br>
&emsp;&emsp;response.set_cookie(key = "auth_cookie", value = cookie, httponly=True)</br>
&emsp;&emsp;response.set_cookie(key = "auth_cookie", value = cookie)</br>
&emsp;&emsp;return response </br>
</code>

Expand Down
2 changes: 1 addition & 1 deletion pygoat/introduction/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,5 +913,5 @@ def sec_misconfig_lab3(request):

cookie = jwt.encode(payload, SECRET_KEY, algorithm='HS256')
response = render(request,"Lab/sec_mis/sec_mis_lab3.html", {"admin":False} )
response.set_cookie(key = "auth_cookie", value = cookie, httponly=True)
response.set_cookie(key = "auth_cookie", value = cookie)
return response

0 comments on commit 3a52c1f

Please sign in to comment.