summaryrefslogtreecommitdiff
path: root/app/views/users/lost_password.html.erb
blob: 85d41408b1d70f7112b247f3c2c59a02de4a7116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<% title "Reset password" %>

<h1>Reset password</h1>
<p>You lost your password? Don't do that!</p>
<p>Luckily for you, you can reset your password. Please use the command <code>/gettoken &lt;your email address&gt;</code>, then fill in the form below:</p>
<%= form_tag reset_password_users_path do |f| %>
  <table>
    <tr>
      <td><%= label_tag :ign, "Minecraft name" %></td>
      <td><%= text_field_tag :ign, nil, placeholder: "Steve", pattern: "[a-zA-Z0-9_]{2,16}", required: true, title: "Your IGN" %></td>
    </tr>
    <tr>
      <td><%= label_tag :email %></td>
      <td><%= text_field_tag :email, nil, placeholder: "steve@example.com", required: true, pattern: ".+@.+", title: "enter valid email address", "x-moz-errormessage" => "enter valid email address" %></td>
    </tr>
    <tr>
      <td><%= label_tag :secret_token %></td>
      <td><%= text_field_tag :secret_token, nil, placeholder: "abcdef", required: true, pattern: "[a-z]{6}", title: "6 character token", "x-moz-errormessage" => "6 character token" %></td>
    </tr>
    <tr>
      <td><%= label_tag :new_password %></td>
      <td><%= password_field_tag :new_password, nil, placeholder: "secret", required: true, pattern: ".{8,}", title: "minimum 8 characters", "x-moz-errormessage" => "minimum 8 characters" %></td>
    </tr>
  </table>
  <p><%= submit_tag "Reset password", class: "btn blue" %></p>
<% end %>