From d46d2405d3528791444c1b8e7df8d394cb6cb85f Mon Sep 17 00:00:00 2001 From: jomo Date: Mon, 30 Jun 2014 21:55:28 +0200 Subject: [PATCH] security info on registration --- app/views/users/new.html.erb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index defa42a..2f3b582 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -20,13 +20,17 @@ <%= f.label :registration_token, "Token" %> - <%= 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. + + <%= 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" %> + + <%= 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! + <%= f.label :password_confirmation, "Confirm" %>