From 59ed71090c06f72d1aec8649355dfd551932583e Mon Sep 17 00:00:00 2001 From: jomo Date: Fri, 3 Apr 2015 21:17:25 +0200 Subject: [PATCH] restructure signup page --- app/views/users/new.html.erb | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index c45810d..c482df9 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -2,12 +2,6 @@

Sign up

-

- Please note that email address and token are case-sensitive!
- When you entered an invalid token, it is removed for the used email address to give hackers no chance. This info page has some details about tokens and website registration.
- Contact us ingame when you have problems singing up! -

- <%= form_for @user do |f| %> @@ -15,21 +9,22 @@ - + - + @@ -37,5 +32,13 @@
<%= f.text_field :ign, placeholder: "Steve", pattern: "[a-zA-Z0-9_]{2,16}", required: true, title: "Your IGN" %>
<%= f.label :email, "Email" %><%= 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" %><%= 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. + 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! + Choose a strong password which you are not using anywhere else!
+ Do not use your Minecraft password!
<%= 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 %> \ No newline at end of file