user upgrades: add upgrade code system.
Add a system for upgrading accounts using upgrade codes. Users purchase an upgrade code off-site then redeem it on-site to upgrade their account to Gold. Upgrade codes are randomly pre-generated and are one time use only. Codes have enough randomness that guessing a code is infeasible.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div class="notice notice-info notice-large" id="upgrade-account-notice">
|
||||
<h2><%= link_to "Upgrade your account for only #{number_to_currency(UserUpgrade.gold_price)}!", new_user_upgrade_path, id: "goto-upgrade-account" %></h2>
|
||||
<h2><%= link_to "Upgrade your account for only #{number_to_currency(UserUpgrade.gold_price, precision: 0)}!", new_user_upgrade_path, id: "goto-upgrade-account" %></h2>
|
||||
<div><%= link_to "No thanks", "#", id: "hide-upgrade-account-notice" %></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user