Skip to content

Commit

Permalink
Merge branch 'Release02x01'
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Jun 26, 2016
2 parents d42e771 + a244064 commit 8541bf7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/lib/Foswiki/UI/Register.pm
Expand Up @@ -134,6 +134,15 @@ sub _action_register {
_requireConfirmation( $session, $data, 'Verification', 'confirm',
$data->{Email} );
}
elsif ( $Foswiki::cfg{Register}{NeedApproval} ) {
my $query = $session->{request};
my $data = _getDataFromQuery( $session->{users}, $query );
$data->{FirstLastName} = $data->{Name};
my $approvers = $Foswiki::cfg{Register}{Approvers}
|| $Foswiki::cfg{AdminUserWikiName};
_requireConfirmation( $session, $data, 'Approval', 'approve',
$approvers );
}
else {

# No need for confirmation
Expand Down

0 comments on commit 8541bf7

Please sign in to comment.