lemonldap-ng/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Password/Custom.pm

14 lines
285 B
Perl
Raw Normal View History

package Lemonldap::NG::Portal::Password::Custom;
use strict;
sub new {
my ( $class, $self ) = @_;
unless ( $self->{conf}->{customPassword} ) {
die 'Custom password module not defined';
}
return $self->{p}->loadModule( $self->{conf}->{customPassword} );
}
1;