Commit 1577400b authored by Yadd's avatar Yadd

Working on Choice (#595)

parent 66271212
......@@ -55,6 +55,13 @@ sub checkChoice {
return 1;
}
sub name {
my ( $self, $req, $type ) = @_;
my $n = ref( $req->datas->{enableMods}->[0] );
$n =~ s/^Lemonldap::NG::Portal::(?:(?:UserDB|Auth)::)?//;
return $n;
}
package Lemonldap::NG::Portal::Simple;
# Build authentication loop displayed in template
......
......@@ -165,7 +165,7 @@ sub getModule {
)
{
if ( $self->$mod->can('name') ) {
return $self->$mod->can('name');
return $self->$mod->can('name')->($self->mod,$req,$type);
}
else {
my $s = ref( $self->$mod );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment