Register
<%= form_for @changeset, ~p"/registrations", fn f -> %>
<%= if @changeset.action do %>
Oops, something went wrong! Please check the errors below.
<% end %>
Non-anonymous posts permanently show your username as of posting time,
and may appear on search engines; choose wisely.
<%= text_input(f, :name, class: "input", placeholder: "Username", required: true) %>
<%= error_tag(f, :name) %>
You'll use your email address to log in, and we'll use this to get in
touch if we need to. Don't worry, we won't share this or spam you.
<%= email_input(f, :email, class: "input", placeholder: "Email", required: true, pattern: ~S/[^\s]+@[^\s]+\.[^\s]+/) %>
<%= error_tag(f, :email) %>
Pick a good strong password - longer is better! Minimum of 12 characters.
<%= password_input(f, :password, class: "input", placeholder: "Password", required: true, minlength: 12) %>
<%= error_tag(f, :password) %>
<%= password_input(f, :password_confirmation, class: "input", placeholder: "Confirm password", required: true, minlength: 12) %>
<%= error_tag(f, :password_confirmation) %>
<%= render(PhilomenaWeb.CaptchaView, "_captcha.html", name: "registration", conn: @conn) %>
We won't share your personal information, won't send you spam emails,
and take your security and privacy seriously.
Don't forget to read the
site rules
before you dive in - they contain a quick introduction on how to
use the site.
<%= submit("Sign Up", class: "button") %>
<% end %>