diff --git a/Web/lib/MJB/Web/Controller/Auth.pm b/Web/lib/MJB/Web/Controller/Auth.pm index 788df47..272c520 100644 --- a/Web/lib/MJB/Web/Controller/Auth.pm +++ b/Web/lib/MJB/Web/Controller/Auth.pm @@ -16,6 +16,9 @@ use DateTime; # Send the user to whatever the default registration system is. #== sub register ( $c ) { + return $c->redirect_to( $c->url_for( 'show_dashboard' ) ) + if exists $c->stash->{person} and $c->stash->{person}->id; + return $c->redirect_to( $c->url_for( 'show_register_stripe' ) ) if $c->config->{register}{default} eq 'stripe'; diff --git a/Web/templates/layouts/standard.html.ep b/Web/templates/layouts/standard.html.ep index cb64aec..5a62dab 100644 --- a/Web/templates/layouts/standard.html.ep +++ b/Web/templates/layouts/standard.html.ep @@ -121,12 +121,14 @@ Contact + % if ( ! $c->stash->{person} ) { + % }