journalduhacker/app/views/login/index.html.erb
joshua stein 5567bb0b7e when resetting a password, if user is deleted but not banned, undelete
Also mention on the login screen that a deleted account can be
recovered this way.

Closes #221
2015-09-06 15:00:20 -05:00

42 lines
1 KiB
Plaintext

<div class="box wide">
<div class="legend">
Login
</div>
<%= form_tag login_path do %>
<p>
<%= label_tag :email, "E-mail or Username:" %>
<%= text_field_tag :email, "", :size => 30, :autofocus => "autofocus" %>
<br />
<%= label_tag :password, "Password:" %>
<%= password_field_tag :password, "", :size => 30 %>
<br />
</p>
<p>
<%= submit_tag "Login" %>
</p>
<p>
Forgot your password or deleted your account?
<%= link_to "Reset your password", forgot_password_path %>.
</p>
<p>
Not a user yet? Signup is by invitation only to combat spam and increase
accountability. If you know <a href="/u/">a current user</a> of the site,
ask them for an
<% if Rails.application.allow_invitation_requests? %>
invitation or <a href="/invitations/request">request one publicly</a>.
<% else %>
invitation.
<% end %>
</p>
<% if @referer.present? %>
<%= hidden_field_tag :referer, @referer %>
<% end %>
<% end %>
</div>