コード例 #1
0
ファイル: page-user-forgot-pass.php プロジェクト: alikris/OTA
</h3>
			<?php 
if (isset($_GET['action']) && $_GET['action'] == 'resetpasswordnotification') {
    ?>
			<p class="success">
				<?php 
    _e('Please confirm the request to reset your password by clicking the link sent to your email address.', 'bookyourtravel');
    ?>
			</p>
			<?php 
} else {
    if (isset($_GET['action']) && $_GET['action'] == 'resetpassword' && isset($_GET['user_id']) && isset($_GET['resetpassword_key'])) {
        $user_id = wp_kses($_GET['user_id'], '', '');
        $resetpassword_key = wp_kses($_GET['resetpassword_key'], '', '');
        $new_password = BYT_Theme_Utils::resetpassword($user_id, $resetpassword_key);
        if ($new_password && BYT_Theme_Utils::newpassword_notification($user_id, $new_password)) {
            ?>
					<p class="success">
						<?php 
            _e('Your password was successfully reset. We have sent the new password to your email address.', 'bookyourtravel');
            ?>
					</p>
				<?php 
        } else {
            ?>
					<p class="error">
						<?php 
            _e('We encountered an error when attempting to reset your password. Please try again later.', 'bookyourtravel');
            ?>
					</p>
				<?php