33 lines
1.9 KiB
HTML
33 lines
1.9 KiB
HTML
{% from 'common/macros.html' import infobox with context %}
|
|
{% from 'common/macros.html' import subheader %}
|
|
{%- extends 'base.html' -%}
|
|
{%- block title -%}sign up{%- endblock -%}
|
|
{%- block content -%}
|
|
{%- set welcome -%}
|
|
<p>Please read the rules etc. stub</p>
|
|
{%- if not inviter -%}
|
|
<p>After you sign up, a moderator will need to confirm your account before you will be allowed to post.
|
|
{%- else -%}
|
|
You have been invited by <a href="{{url_for('users.user_page', username=inviter.username)}}">{{inviter.get_readable_name()}}</a> to join {{config.SITE_NAME}}. Create an identity below.
|
|
{%- endif -%}
|
|
</p>
|
|
{%- endset -%}
|
|
{{ subheader('Sign up', welcome)}}
|
|
{%- if request.args.get('error') -%}
|
|
{{infobox(request.args.error, InfoboxKind.ERROR)}}
|
|
{%- endif -%}
|
|
<form class="plank primary-bg full-width" method="POST">
|
|
{%- if invite -%}
|
|
<input type="hidden" name="key" value="{{invite.key}}">
|
|
{%- endif -%}
|
|
<label for="username">Username</label>
|
|
<input type="text" id="username" name="username" pattern="[a-zA-Z0-9_\-]{3,24}" title="3-24 characters. Only upper and lowercase letters, digits, hyphens, and underscores" autocomplete="username" required>
|
|
<label for="password">Create password</label>
|
|
<input type="password" id="password" name="password" pattern="(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_])(?!.*\s).{10,255}" title="10+ chars with at least: 1 uppercase, 1 lowercase, 1 number, 1 special char, and no spaces" autocomplete="new-password" required>
|
|
<label for="password2">Confirm password</label>
|
|
<input type="password" id="password2" name="password" pattern="(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_])(?!.*\s).{10,255}" title="10+ chars with at least: 1 uppercase, 1 lowercase, 1 number, 1 special char, and no spaces" autocomplete="new-password" required>
|
|
<span><input type="checkbox" name="remember" id="remember"> <label for="remember">Remember me</label></span>
|
|
<input type="submit" value="Sign up" class="alt">
|
|
</form>
|
|
{%- endblock -%}
|