<% title "Sign up" %>

Sign up

<%= form_for @user do |f| %>
<%= f.label :ign, "Minecraft name" %> <%= f.text_field :ign, placeholder: "Steve", pattern: "[a-zA-Z0-9_]{2,16}", required: true, title: "Your IGN" %>
<%= f.label :email, "Email (case sensitive)" %> <%= f.email_field :email, placeholder: "steve@example.com", required: true, pattern: ".+@.+", title: "enter valid email address", "x-moz-errormessage" => "enter valid email address" %>
<%= f.label :registration_token, "Token (case sensitive)" %> <%= text_field_tag :registration_token, nil, placeholder: "abcdef", required: true, pattern: "[a-z]{6}", title: "6 character token", "x-moz-errormessage" => "6 character token" %>
To get your token, join the Minecraft server (redstoner.com) and use the /token command.
<%= f.label :password, "Password" %> <%= f.password_field :password, placeholder: "secret", required: true, pattern: ".{8,}", title: "minimum 8 characters", "x-moz-errormessage" => "minimum 8 characters" %>
Choose a strong password which you are not using anywhere else!
Do not use your Minecraft password!
<%= f.label :password_confirmation, "Confirm" %> <%= f.password_field :password_confirmation, placeholder: "secret", required: true, pattern: ".{8,}", title: "minimum 8 characters", "x-moz-errormessage" => "minimum 8 characters" %>

If you have entered an invalid token you have to generate a new token. This is done to give hackers no chance to brute-force your token
You can find more details in our info page about tokens and website registration.

<%= f.submit "Sign up", class: "btn blue" %>

Contact us ingame if you have problems singing up!

<% end %>