rails only allows to globally flag session cookies as either secure or not
this patch sets the secure flag for cookies based on the protocol (http/https)
this is used to send cookies via http but flag them secure for https
which allows use with HTTP over Tor for an onion domain
this is acceptable because nginx redirects clearnet http to https
saving the user can fail when the new ign or name are already assigned to a different user.
it's not worth implementing automatic correction because there can be multiple or even circular
'dependencies' of unique names that need to be changed
only records with the same UUID are deleted before INSERTing new ones
meaning a player could prevent another one from using a certain address
when emails are unique.
There's no good reason to force uniqueness on emails in this table
You should now be able to resend the confirmation mail with the click of
a link that is next to the warning that the mail isn't confirmed.
Resend the confirmation mail cleaning
Just a way to re use the files and stuff we already have instead of the
file I created even though I could use the register_mail we have.
Change of route and link to button
I changed the route from GET to POST because of security reasons, and
changed the link_to to a button_to
changed the notice
I changed the notice so it said check for the mail instead of check for
the link
Changed notice and button
Changed the notice to say "Check your inbox" instead of "Check your
mail" also changed the way the class looks
Removed the haspaid?, correct_case?, ign_is_not_skull and
ign_is_not_mojang methods because they aren't used anymore, since we now
have a connection between the server and the website to check if they
have paid and that the skull is a skull. I also removed the
account_exists? method because it makes problems when you setup the
database since some users can be seen to not exist.