Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST['submit'])) {
- $email = trim($_POST["email"]);
- require_once(MODAL_PATH . "/user.php");
- $user = User::fromEmail($email);
- if ($user->exists) {
- $user->ResetPassword();
- } else {
- $pageData["error"] = "A user with that email address does not exist.";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement