<?php
function renderAuth0Form($canShowLegacyLogin = true)
{
    if(is_user_logged_in())
        return;

    $wordpress_login_enabled = $canShowLegacyLogin && (WP_Auth0_Options::get('wordpress_login_enabled') == 1);

    if (!$wordpress_login_enabled || !isset($_GET['wle'])) {
        include ('auth0-login-form.php');
    }else{
        add_action('login_footer', array(WP_Auth0::class, 'render_back_to_auth0'));
    }
}

?>
<?php
function renderAuth0Form($canShowLegacyLogin = true)
{
    if(is_user_logged_in())
        return;

    $wordpress_login_enabled = $canShowLegacyLogin && (WP_Auth0_Options::get('wordpress_login_enabled') == 1);

    if (!$wordpress_login_enabled || !isset($_GET['wle'])) {
        require_once ('auth0-login-form.php');
    }else{
        add_action('login_footer', array(WP_Auth0::class, 'render_back_to_auth0'));
    }
}

?>
Fix to allow to show multiple times the auth0 login form in the same page
Fix to allow to show multiple times the auth0 login form in the same page
