if ( !
function_exists( 'wp_generate_password'
) ) { require_once ABSPATH . WPINC . '/pluggable.php';
} $validated =
$this->key_service->
validate_recovery_mode_key( $_GET['rm_token'
],
$_GET['rm_key'
],
$ttl );
if ( is_wp_error( $validated ) ) { wp_die( $validated, ''
);
} $this->cookie_service->
set_cookie();
$url =
add_query_arg( 'action', self::LOGIN_ACTION_ENTERED,
wp_login_url() );
wp_redirect( $url );
die;
} /**
* Gets a URL to begin recovery mode.
*
* @since 5.2.0
*
* @param string $token Recovery Mode token created by {@see generate_recovery_mode_token()}.
* @param string $key Recovery Mode key created by {@see generate_and_store_recovery_mode_key()}.
* @return string Recovery mode begin URL.
*/