lemonldap-ng/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Register/Custom.pm
Clément OUDOT c5f9a7f95b make tidy
2018-10-12 10:04:03 +02:00

19 lines
413 B
Perl

package Lemonldap::NG::Portal::Register::Custom;
use strict;
sub new {
my ( $class, $self ) = @_;
unless ( $self->{conf}->{customRegister} ) {
die 'Custom register module not defined';
}
my $res = $self->{p}->loadModule( $self->{conf}->{customRegister} );
unless ($res) {
die 'Unable to load register module ' . $self->{conf}->{customRegister};
}
return $res;
}
1;