* Move emails from users table to email_addresses table. * Validate that addresses are formatted correctly and are unique across users. Existing invalid emails are grandfathered in. * Add is_verified flag (the address has been confirmed by the user). * Add is_deliverable flag (an undeliverable address is an address that bounces). * Normalize addresses to prevent registering multiple accounts with the same email address (using tricks like Gmail's plus addressing).
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
<% page_title "Sign up" %>
|
|
<% meta_description "Create a new account for free on #{Danbooru.config.app_name}." %>
|
|
|
|
<%= render "secondary_links" %>
|
|
|
|
<div id="c-users">
|
|
<div id="a-new" class="fixed-width-container">
|
|
<h1>Sign Up</h1>
|
|
|
|
<p>
|
|
A basic account is <strong>free</strong> and lets you keep favorites, upload artwork, edit tags, and post
|
|
comments. If you want <%= link_to "more features", new_user_upgrade_path %> you can upgrade your account later.
|
|
</p>
|
|
|
|
<div id="p3">
|
|
<%= edit_form_for(@user, html: { id: "signup-form" }) do |f| %>
|
|
<%= f.input :name, as: :string %>
|
|
<%= f.simple_fields_for :email_address do |fe| %>
|
|
<%= fe.input :address, label: "Email", required: false, as: :email, hint: "Optional" %>
|
|
<% end %>
|
|
<%= f.input :password %>
|
|
<%= f.input :password_confirmation %>
|
|
|
|
<% if Danbooru.config.enable_recaptcha? %>
|
|
<%= invisible_recaptcha_tags callback: 'submitInvisibleRecaptchaForm', text: 'Sign up' %>
|
|
<% else %>
|
|
<%= f.submit "Sign up", :data => { :disable_with => "Signing up..." } %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|