Registration

<% if session[:verified_steamid] %>
Your SteamID (<%= session[:verified_steamid] %>) does not have an existing account. You can easily finish creating Steam-linked account here. Before doing so, please check you do not already have an account. If you do, click here and type username and password below. You can look look for your account <%= link_to "here", users_path, target: "_blank" %>.
<%= form_tag(users_login_path(), { class: 'square' }) do %>
<%= text_field "login", "username", placeholder: "Username" %> <%= password_field "login", "password", placeholder: "Password" %>
<%= submit_tag t('helpers.submit.user.login'), class: "button" %>
<% end %> <% end %> <%= form_for @user, html: { class: "square" } do |f| %> <%= render 'shared/errors', messages: @user.errors.full_messages %> <% unless session[:verified_steamid] %>
<%= link_to "Create your account via Steam", "/auth/steam", method: :POST %>
<% end %>
<%= f.label :username %> <%= f.text_field :username %>
Pick unique nickname for yourself.
<% unless session[:verified_steamid] %>
<%= f.label :raw_password, "Password" %> <%= f.password_field :raw_password %>
Please don't use same password as any important place.
<% end %>
<%= f.label :email %> <%= f.text_field :email %>
The email is needed to reset password, verify identity and send account related emails. We don't send spam or give your email to third parties. By default the email is private and only seen by admins.
<%= f.label :steamid %> <%= f.text_field :steamid, placeholder: "0:1:23456789" %>
<% unless session[:verified_steamid] %>
You can use <%= link_to "this tool", steamid_tool %> or <%= link_to "this web page", 'https://steamidfinder.com/' %> to find your SteamID. We need the steam id to identify unique players. If you use fake one, some things on website might be broken.
<% end %>
<%= f.label :birthdate %> <%= date_select :user, :birthdate, order: [:year, :month, :day], start_year: 1950, include_blank: true, default: nil %>
Only needed for fun stats (age etc.). Leave blank if you don't want to give one.
<%= f.submit "Register" %>
<% end %>