Enable _Webform init (#595)

This commit is contained in:
Xavier Guimard 2017-01-25 11:51:30 +00:00
parent 3cdd87b5d4
commit dab5921d64
4 changed files with 12 additions and 2 deletions

View File

@ -9,6 +9,14 @@ our $VERSION = '2.0.0';
extends 'Lemonldap::NG::Portal::Auth::_WebForm',
'Lemonldap::NG::Portal::Lib::DBI';
# INTIALIZATION
sub init {
my ($self) = @_;
return ( $self->Lemonldap::NG::Portal::Auth::_WebForm::init
and $self->Lemonldap::NG::Portal::Lib::DBI::init );
}
# RUNNING METHODS
sub authenticate {

View File

@ -25,7 +25,7 @@ sub init {
"Using demonstration mode, go to Manager to edit the configuration",
'warn' );
1;
return $self->Lemonldap::NG::Portal::Auth::_WebForm::init();
}
# RUNNING METHODS

View File

@ -13,7 +13,8 @@ extends
sub init {
my ($self) = @_;
return $self->Lemonldap::NG::Portal::Lib::LDAP::init;
return $self->Lemonldap::NG::Portal::Auth::_WebForm::init
and $self->Lemonldap::NG::Portal::Lib::LDAP::init;
}
# RUNNING METHODS

View File

@ -12,6 +12,7 @@ extends 'Lemonldap::NG::Portal::Auth::_WebForm';
sub init {
my ($self) = @_;
return 0 unless $self->Lemonldap::NG::Portal::Auth::_WebForm::init();
if ( $self->conf->{proxyUseSoap} ) {
extends 'Lemonldap::NG::Portal::Lib::SOAPProxy',
'Lemonldap::NG::Portal::Auth::_WebForm';