wirechan/templates/register.html
0n1cOn3 58d529a548 Added CSRF Protection, fixing Admin Authentication
Bypass, Sanitizing Inputs, Error Handling for Database Operations
2024-10-18 13:57:06 +02:00

23 lines
No EOL
775 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>register</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
</head>
<body>
<div class="link-container">
<h1>register</h1>
<h4>{{ regalert }}</h4>
<form action="{{ url_for('register_post') }}" method="post">
{{ csrf_token() }} <!-- Add this line to enable CSRF -->
<label for="username">username:</label>
<input type="text" id="username" name="username" required>
<br>
<label for="password">password:</label>
<input type="password" id="password" name="password" required>
<br>
<button type="submit">register</button>
</form>
</div>
</body>
</html>