lemonldap-ng/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/UserDB/Custom.pm
Christophe Maudoux 2153546c4c Display error msg
2018-08-29 18:52:22 +02:00

18 lines
434 B
Perl

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