示例#1
0
                success($user, $pageAfterLogin);
            }
        }
    } else if ($action == "remind") {
        $user = SecurityUser::getByLoginName($loginName);
        if ($user == NULL) {
            $errMsg = Text::getText("UserNotFound");
        } else {
            if ($user->getEmail() == "") {
                $errMsg = Text::getText("NoEmailSetInProfile");
            } else {
                $user->sendPasswordReset();
                $errMsg = str_replace('$email', $user->getEmail(), Text::getText("PasswordResetSent"));
            }
        }
    } else if ($_REQUEST['reset'] != null) {
        $resetKey = $_REQUEST['reset'];
        $user = SecurityUser::getByResetKey($resetKey);
        if ($user == NULL) {
            $errMsg = Text::getText("InvalidRequestKey");
        } else {
            $errMsg = Text::getText("EnterNewPassword");
            $form = "passwordResetForm.php";
        }
    }
    include("header.php");
    include($form);
    include("footer.php");
    
?>