Use get_module for check in UserDBOpenID init

environments/ppa-mbqj77/deployments/1
Clément Oudot 15 years ago
parent 82feff1eb7
commit a81c8c7f52
  1. 7
      modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/UserDBOpenID.pm

@ -15,10 +15,8 @@ our $VERSION = '0.01';
# @return Lemonldap::NG::Portal error code
sub userDBInit {
my $self = shift;
if ( $self->{authentication} =~ /^OpenID/
or $self->{stack}->[0]->[0]->{m} =~ /^OpenID/ )
{
return PE_OK;
if ( $self->get_module('auth') eq 'OpenID' ) {
}
else {
$self->lmLog(
@ -68,7 +66,6 @@ sub setSessionInfo {
'warn'
);
# TODO: create a PE_* for that
return PE_MISSINGREQATTR;
}
}

Loading…
Cancel
Save