Now maybe it will work.

master
Manager Bot 3 years ago
parent 460f417fd6
commit b0b4dd5c71
  1. 7
      Web/lib/MJB/Web/Controller/Auth.pm

@ -251,7 +251,6 @@ sub do_register_stripe ( $c ) {
my $person = $c->db->resultset('Person')->create({ my $person = $c->db->resultset('Person')->create({
email => $c->param('email'), email => $c->param('email'),
name => $c->param('name'), name => $c->param('name'),
is_enabled => 0,
}); });
$person->new_related('auth_password', {})->set_password($c->param('password')); $person->new_related('auth_password', {})->set_password($c->param('password'));
@ -272,7 +271,9 @@ sub do_register_stripe ( $c ) {
# Log the user in asnd then send themn to the payment page. # Log the user in asnd then send themn to the payment page.
$c->session->{uid} = $person->id; $c->session->{uid} = $person->id;
$c->redirect_to( $c->url_for( 'show_dashboard' ) ); $c->redirect_to(
$c->ua->get( $c->config->{stripe}->{backend} . '/stripe/get-checkout-link?lookup_key=' . $c->config->{stripe}->{lookup_key} )->result->json->{url}
);
} }
#== #==
@ -280,7 +281,7 @@ sub do_register_stripe ( $c ) {
# #
# Once a user has registered in the strip work flow, they will need to pay # Once a user has registered in the strip work flow, they will need to pay
# for their account before it is enabled. This route will bring them to the # for their account before it is enabled. This route will bring them to the
# stripe subscription payment page. # stripe subscription payment page -- in case it failed the first time.
#== #==
sub register_stripe_pay ( $c ) { sub register_stripe_pay ( $c ) {
# Don't allow this user registration method unless register.enable_open is true. # Don't allow this user registration method unless register.enable_open is true.

Loading…
Cancel
Save