Reject email addresses that known to be undeliverable during signup. Some users signup with invalid email addresses, which causes the welcome email (which contains the email confirmation link) to bounce. Too many bounces hurt our ability to send mail. We check that an email address is undeliverable by checking if the domain has a mail server and if the server returns an invalid address error when attempting to send mail. This isn't foolproof since some servers don't return an error if the address doesn't exist. If the checks fail we know the address is bad, but if the checks pass that doesn't guarantee the address is good. However, this is still good enough to filter out bad addresses for popular providers like Gmail and Microsoft that do return nonexistent address errors. The address existence check requires being able to connect to mail servers over port 25. This may fail if your network blocks port 25, which many home ISPs and hosting providers do by default.
31 lines
1.1 KiB
Plaintext
31 lines
1.1 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.input :email, label: "Email", required: false, as: :email, hint: "Optional" %>
|
|
<%= 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>
|