Invite links prototype working
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
decentral1se
2021-06-12 19:46:48 +02:00
parent 480cd4a4fe
commit 80dd93823e
6 changed files with 327 additions and 26 deletions

44
templates/register.html Normal file
View File

@ -0,0 +1,44 @@
<html>
<head>
<title>Register</title>
<style>
input {
display: block;
}
</style>
</head>
<body>
<p>
You've been invited by {{ username }} to register an account!
</p>
<form method="post" action="{{ url_for('form_keycloak_register') }}">
<label for="first_name">First name:</label>
<input type="text" name="first_name" />
<label for="last_name">Last name:</label>
<input type="text" name="last_name" />
<label for="username">Username:</label>
<input type="text" name="username" />
<label for="email">Email:</label>
<input type="text" name="email" />
<label for="password">Password:</label>
<input type="password" name="password" />
<input type="submit" />
</form>
{% if success %}
<p>
An email verification mail has been sent to {{ email }}. Please check your
mail shortly to verify account and set your account password. Please also
check your spam inbox in case it ends up in there.
</p>
{% elif failure %}
<p>Something went wrong, oops! Please contact the system administrator.</p>
{% endif %}
</body>
</html>