From cf93f3ef1b6d9a17aca82fdc221df82687242333 Mon Sep 17 00:00:00 2001 From: Josh Cunningham Date: Wed, 20 Jun 2018 08:41:57 -0700 Subject: [PATCH] Show signup tab if action = resigster on login page --- lib/WP_Auth0_Lock10_Options.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/WP_Auth0_Lock10_Options.php b/lib/WP_Auth0_Lock10_Options.php index b1197a24..8c8fcef2 100644 --- a/lib/WP_Auth0_Lock10_Options.php +++ b/lib/WP_Auth0_Lock10_Options.php @@ -204,6 +204,10 @@ public function get_lock_options() { $options_obj['disableSignupAction'] = true; } + if ( function_exists( 'login_header' ) && isset( $_GET['action'] ) && 'register' === $_GET['action'] ) { + $options_obj['initialScreen'] = 'signUp'; + } + return $options_obj; }