New "Custom" modules family (closes: #1188)
parent
d7340203a5
commit
2fb085b2a6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@ |
||||
package Lemonldap::NG::Portal::Auth::Custom; |
||||
|
||||
use strict; |
||||
|
||||
sub new { |
||||
my ( $class, $self ) = @_; |
||||
unless ( $self->{conf}->{customAuth} ) { |
||||
die 'Custom auth module not defined'; |
||||
} |
||||
return $self->{p}->loadModule( $self->{conf}->{customAuth} ); |
||||
} |
||||
|
||||
1; |
@ -0,0 +1,13 @@ |
||||
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; |
@ -0,0 +1,13 @@ |
||||
package Lemonldap::NG::Portal::Register::Custom; |
||||
|
||||
use strict; |
||||
|
||||
sub new { |
||||
my ( $class, $self ) = @_; |
||||
unless ( $self->{conf}->{customRegister} ) { |
||||
die 'Custom register module not defined'; |
||||
} |
||||
return $self->{p}->loadModule( $self->{conf}->{customRegister} ); |
||||
} |
||||
|
||||
1; |
@ -0,0 +1,13 @@ |
||||
package Lemonldap::NG::Portal::UserDB::Custom; |
||||
|
||||
use strict; |
||||
|
||||
sub new { |
||||
my ( $class, $self ) = @_; |
||||
unless ( $self->{conf}->{customUserDB} ) { |
||||
die 'Custom user DB module not defined'; |
||||
} |
||||
return $self->{p}->loadModule( $self->{conf}->{customUserDB} ); |
||||
} |
||||
|
||||
1; |
Loading…
Reference in new issue