Skip to content

Commit

Permalink
Show signup tab if action = resigster on login page
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Jun 25, 2018
1 parent 4d8c4c5 commit 0b339eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/WP_Auth0_Lock10_Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0b339eb

Please sign in to comment.