msp;&emsp;try:<br>
&emsp;&emsp;&emsp;username = request.POST["username"]<br>
&emsp;&emsp;&emsp;password = request.POST["password"]<br>
&emsp;&emsp;&emsp;password = hashlib.sha256(password.encode()).hexdigest()<br>
&emsp;&emsp;except:<br>
&emsp;&emsp;&emsp;response = render(request, "Lab_2021/A7_auth_failure/lab3.html")<br>
&emsp;&emsp;&emsp;response.set_cookie("session_id", None)<br>
&emsp;&emsp;&emsp;return response<br>
<br>
&emsp;&emsp;if USER_A7_LAB3[username]['password'] == password:<br>
&emsp;&emsp;&em