Files
danbooru/app/views/sessions/new.html.erb
evazion ddd149e22b seo: mark login links as nofollow.
Mark links to the login page as rel="nofollow" so that search crawlers
don't constantly try to crawl it. Otherwise the fact the login url is
different on every page (/login?url=<current_url>) confuses crawlers.

Also strip the url param from the canonical url (<link rel="canonical">)
on the login page.
2020-12-27 04:41:49 -06:00

24 lines
746 B
Plaintext

<% page_title "Login" %>
<% meta_description "Login to #{Danbooru.config.app_name}" %>
<% canonical_url login_url %>
<%= render "sessions/secondary_links" %>
<div id="c-sessions">
<div id="a-new">
<section>
<h1>Login</h1>
<%= simple_form_for(:session, url: session_path) do |f| %>
<%= f.input :url, as: :hidden, input_html: { value: params[:url] } %>
<%= f.input :name %>
<%= f.input :password, hint: link_to("Forgot password?", password_reset_path), input_html: { autocomplete: "password" } %>
<%= f.submit "Login" %>
<% end %>
<p class="fineprint">
New to <%= Danbooru.config.app_name %>? <%= link_to "Create a new account", new_user_path %>.
</p>
</div>
</div>