adiciondo /register e verificação pgp
This commit is contained in:
parent
9d3efaadfe
commit
d159f4ec68
5 changed files with 254 additions and 15 deletions
|
|
@ -5,7 +5,19 @@
|
|||
<link rel="stylesheet" href="{{ url_for('static', filename='drip.css') }}">
|
||||
</head>
|
||||
<header><h1>Dating Website</h1></header>
|
||||
<nav><a href="/">home</a> / <a href="/register">register</a> / <a href="login">login</a></nav>
|
||||
<nav>
|
||||
|
||||
<a href="{{ url_for('home') }}">Home</a>
|
||||
|
||||
{% if session.get('username') %}
|
||||
<span>Welcome, {{ session['username'] }}!</span>
|
||||
<a href="{{ url_for('logout') }}">Logout</a>
|
||||
{% else %}
|
||||
<a href="{{ url_for('login') }}">Login</a>
|
||||
<a href="{{ url_for('register') }}">Register</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
|
||||
<body>
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,58 @@
|
|||
{% extends "page.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Register</h2>
|
||||
<p>Page text</p>
|
||||
<p>Page text</p>
|
||||
<p>Page text</p>
|
||||
<p>Page text</p>
|
||||
<p>Page text</p>
|
||||
<p>Page text</p>
|
||||
<p>Page text</p>
|
||||
<p>Page text</p>
|
||||
<p>Page text</p>
|
||||
<p>Page text</p>
|
||||
<h2>Register</h2>
|
||||
|
||||
<form method="POST">
|
||||
|
||||
<h3>Identity</h3>
|
||||
<input type="text" name="username" placeholder="Username" required><br>
|
||||
<textarea name="pgp" placeholder="PGP Public Key" required></textarea><br>
|
||||
|
||||
<h3>Personal Info</h3>
|
||||
<input type="text" name="firstname" placeholder="First Name" required><br>
|
||||
<input type="text" name="lastname" placeholder="Last Name" required><br>
|
||||
|
||||
<select name="sex" required>
|
||||
<option value="">Select Sex</option>
|
||||
<option value="male">Male</option>
|
||||
<option value="female">Female</option>
|
||||
</select><br>
|
||||
|
||||
<input type="date" name="date_of_birth" required><br>
|
||||
|
||||
<h3>Profile</h3>
|
||||
<input type="text" name="profile_picture" placeholder="Profile Picture URL" required><br>
|
||||
|
||||
<h3>Location</h3>
|
||||
<input type="text" name="country" placeholder="Country" required><br>
|
||||
<input type="text" name="city" placeholder="City"><br>
|
||||
|
||||
<h3>Physical Attributes</h3>
|
||||
<input type="number" step="0.01" name="height" placeholder="Height (m)"><br>
|
||||
<input type="number" name="weight" placeholder="Weight (kg)"><br>
|
||||
<input type="text" name="race" placeholder="Race"><br>
|
||||
|
||||
<h3>Preferences</h3>
|
||||
<input type="text" name="prefered_age_range" placeholder="Preferred Age Range (e.g. 20-30)"><br>
|
||||
|
||||
<h3>Contacts</h3>
|
||||
<input type="text" name="xmpp" placeholder="XMPP" required><br>
|
||||
<input type="email" name="email" placeholder="Email"><br>
|
||||
<input type="text" name="phone" placeholder="Phone"><br><br>
|
||||
|
||||
<button type="submit">Register</button>
|
||||
|
||||
</form>
|
||||
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
<ul>
|
||||
{% for message in messages %}
|
||||
<li style="color:red;">{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
17
src/templates/verify.html
Normal file
17
src/templates/verify.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{% extends "page.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>PGP Verification</h2>
|
||||
|
||||
<p>Decrypt the message below using your private key and paste the result.</p>
|
||||
|
||||
<textarea rows="10" cols="80" readonly>
|
||||
{{ encrypted_message }}
|
||||
</textarea>
|
||||
|
||||
<form method="POST" action="{{ url_for('verify') }}">
|
||||
<textarea name="decrypted_message" placeholder="Paste decrypted message here" required></textarea><br>
|
||||
<button type="submit">Verify</button>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue