2020-01-10 17:48:23 +01:00
|
|
|
package Lemonldap::NG::Portal::CertificateResetByMail::Custom;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use Mouse;
|
|
|
|
|
|
|
|
extends 'Lemonldap::NG::Portal::Main::Plugin';
|
|
|
|
|
|
|
|
sub new {
|
|
|
|
my ( $class, $self ) = @_;
|
|
|
|
unless ( $self->{conf}->{customRegister} ) {
|
|
|
|
die 'Custom register module not defined';
|
|
|
|
}
|
|
|
|
|
|
|
|
my $res = $self->{p}->loadModule( $self->{conf}->{customResetCertByMail} );
|
|
|
|
unless ($res) {
|
2020-02-20 23:34:02 +01:00
|
|
|
die 'Unable to load register module '
|
|
|
|
. $self->{conf}->{customResetCertByMail};
|
2020-01-10 17:48:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return $res;
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|