added training
This commit is contained in:
35
training/srdnlenctf-2025/web_Ben10/templates/register.html
Normal file
35
training/srdnlenctf-2025/web_Ben10/templates/register.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="register-container">
|
||||
<h2>Sign Up</h2>
|
||||
|
||||
<form method="POST">
|
||||
<div>
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username" id="username" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password" id="password" required>
|
||||
</div>
|
||||
|
||||
<button type="submit">Sign Up</button>
|
||||
</form>
|
||||
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<div class="message-container">
|
||||
{% for category, message in messages %}
|
||||
<p class="error">{{ message }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
<br>
|
||||
|
||||
<a href="{{ url_for('login') }}">Login</a></h2>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user