diff --git a/gatherling/forgot.php b/gatherling/forgot.php index ab6a20570..f82906372 100644 --- a/gatherling/forgot.php +++ b/gatherling/forgot.php @@ -1,17 +1,74 @@ emailPrivacy ? "your registered email" : $player->emailAddress; + if (sendLoginLink($player)) { + echo '
A link has been sent to ' . htmlentities($email) . '
'; + } else { + echo 'Unable to send a link to ' . htmlentities($email) . '
'; + printForgotForm(); + } + } else { + echo 'Unable to find a player with that email or username
'; + printForgotForm(); + } +} else { + printForgotForm(); +} + +printPageFooter(); +print_footer(); + +function printPageHeader() { + ?> +Enter your email or username and we'll send you a link to get back into your account.
+ +If you aren't able to reset your password this way please message a Gatherling Administrator + on the Discord
+ -