Welcome back

Sign in to your SoutLoud account

or sign in with email

Don't have an account? Create one free

/* Redirect already-logged-in users to their dashboard. */ if ( is_user_logged_in() ) { wp_safe_redirect( home_url( '/dashboard/' ) ); exit; } /* Collect error / notice from query string (WP login redirects). */ $login_error = ''; $login_notice = ''; // Default redirect: SoutLoud dashboard for users, wp-admin for admins. $_default_redirect = ( function_exists( 'get_option' ) && get_option( 'soutloud_dashboard_page_id' ) ) ? get_permalink( (int) get_option( 'soutloud_dashboard_page_id' ) ) : home_url( '/' ); $redirect_to = isset( $_GET['redirect_to'] ) ? esc_url_raw( wp_unslash( $_GET['redirect_to'] ) ) : $_default_redirect; if ( isset( $_GET['login'] ) ) { if ( 'failed' === $_GET['login'] ) { $login_error = esc_html__( 'Incorrect username or password. Please try again.', 'soutloud-legacy' ); } elseif ( 'empty' === $_GET['login'] ) { $login_error = esc_html__( 'Please enter your username and password.', 'soutloud-legacy' ); } } if ( isset( $_GET['registered'] ) ) { $login_notice = esc_html__( 'Registration successful! You can now log in below.', 'soutloud-legacy' ); } if ( isset( $_GET['loggedout'] ) ) { $login_notice = esc_html__( 'You have been successfully logged out.', 'soutloud-legacy' ); } if ( isset( $_GET['checkemail'] ) && 'confirm' === $_GET['checkemail'] ) { $login_notice = esc_html__( 'Check your email to confirm your account before logging in.', 'soutloud-legacy' ); } /* Social login URLs — point to the /start REST redirect endpoint so state is * generated at click time, not at page-render time. This makes the HTML safe * to serve from LiteSpeed cache without stale state or wrong redirect URIs. */ $google_url = set_url_scheme( rest_url( 'soutloud/v1/auth/social/google/start' ), 'https' ); $facebook_url = set_url_scheme( rest_url( 'soutloud/v1/auth/social/facebook/start' ), 'https' ); $github_url = soutloud_legacy_social_auth_url( 'github' ); // GitHub handled by legacy theme $show_google = ! empty( get_option( 'sl_social_google_client_id' ) ); $show_facebook = ! empty( get_option( 'sl_social_facebook_app_id' ) ); $show_github = ! empty( get_option( 'sl_social_github_client_id' ) ); $any_social = $show_google || $show_facebook || $show_github; /* Registration URL. */ $register_url = get_option( 'users_can_register' ) ? ( get_theme_mod( 'sl_register_page_url', '' ) ?: wp_registration_url() ) : ''; get_header(); ?>

Welcome back

Sign in to your SoutLoud account

or sign in with email

Don't have an account? Create one free