16 lines
1.1 KiB
Plaintext
16 lines
1.1 KiB
Plaintext
<h1>Sign up</h1>
|
|
|
|
<% if err then %>
|
|
<h2><%= err %></h2>
|
|
<% end %>
|
|
<form method="post" action="<%= url_for('user_signup') %>" enctype="multipart/form-data">
|
|
<label for="username">Username</label><br>
|
|
<input type="text" id="username" name="username" pattern="[\w\-]{3,20}" title="3-20 characters. Only upper and lowercase letters, hyphens, and underscores" required autocomplete="username"><br>
|
|
<label for="password">Password</label><br>
|
|
<input type="password" id="password" name="password" pattern="(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_])(?!.*\s).{10,}" title="10+ chars with: 1 uppercase, 1 lowercase, 1 number, 1 special char, and no spaces" required autocomplete="new-password"><br>
|
|
<label for="password2">Confirm Password</label><br>
|
|
<input type="password" id="password2" name="password2" pattern="(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_])(?!.*\s).{10,}" title="10+ chars with: 1 uppercase, 1 lowercase, 1 number, 1 special char, and no spaces" required autocomplete="new-password"><br>
|
|
<input type="submit" value="Sign up">
|
|
</form>
|
|
<p>After you sign up, an administrator will need to confirm your account before you will be allowed to post.</p>
|