intersynergy-login-plugin.php
/**
     * Redirects to the custom password reset page, or the login page
     * if there are errors.
     */
Redirects to the custom password reset page, or the login page
if there are errors.
Redirects to the custom password reset page or the login page if there are errors .
public function redirect_to_custom_password_reset()
    {
        if ('GET' == $_SERVER['REQUEST_METHOD']) {
            $user = check_password_reset_key($_REQUEST['key'], $_REQUEST['login']);
            if (! $user || is_wp_error($user)) {
                if ($user && $user->get_error_code() === 'expired_key') {
                    wp_redirect(home_url($this->pageSlug['member-login'].'?login=expiredkey'));
                } else {
                    wp_redirect(home_url($this->pageSlug['member-login'].'?login=invalidkey'));
                }
                exit;
            }
            $redirect_url = home_url($this->pageSlug['member-password-reset']);
            $redirect_url = add_query_arg('login', esc_attr($_REQUEST['login']), $redirect_url);
            $redirect_url = add_query_arg('key', esc_attr($_REQUEST['key']), $redirect_url);
            wp_redirect($redirect_url);
            exit;
        }
    }
public function redirect_to_custom_password_reset ( ) { if ( 'GET' == $ _SERVER [ 'REQUEST_METHOD' ] ) { $ user = check_password_reset_key ( $ _REQUEST [ 'key' ] , $ _REQUEST [ 'login' ] ) ; if ( ! $ user || is_wp_error ( $ user ) ) { if ( $ user && $ user -> get_error_code ( ) === 'expired_key' ) { wp_redirect ( home_url ( $ this -> pageSlug [ 'member-login' ] . '?login=expiredkey' ) ) ; } else { wp_redirect ( home_url ( $ this -> pageSlug [ 'member-login' ] . '?login=invalidkey' ) ) ; } exit ; } $ redirect_url = home_url ( $ this -> pageSlug [ 'member-password-reset' ] ) ; $ redirect_url = add_query_arg ( 'login' , esc_attr ( $ _REQUEST [ 'login' ] ) , $ redirect_url ) ; $ redirect_url = add_query_arg ( 'key' , esc_attr ( $ _REQUEST [ 'key' ] ) , $ redirect_url ) ; wp_redirect ( $ redirect_url ) ; exit ; } }
Redirects to the custom password reset page, or the login page
 if there are errors.
Redirects to the custom password reset page or the login page if there are errors .
// Verify key / login combo