Fix returned values (#1954)
This commit is contained in:
parent
fb622fff64
commit
1d0a79ba5d
|
@ -16,7 +16,7 @@ our $VERSION = '2.0.6';
|
|||
# Overload main run method
|
||||
sub run {
|
||||
my ( $class, $req ) = @_;
|
||||
my $ret = $class->Lemonldap::NG::Handler::Main::run($req);
|
||||
my ($ret, $session) = $class->Lemonldap::NG::Handler::Main::run($req);
|
||||
|
||||
# Continue only if user is authorized
|
||||
return $ret unless ( $ret == $class->OK );
|
||||
|
|
|
@ -3765,7 +3765,7 @@ qr/^(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-
|
|||
'v' => 'ServiceToken'
|
||||
},
|
||||
{
|
||||
'k' => 'Zimbra',
|
||||
'k' => 'ZimbraPreAuth',
|
||||
'v' => 'ZimbraPreAuth'
|
||||
}
|
||||
],
|
||||
|
|
|
@ -1968,7 +1968,7 @@ sub attributes {
|
|||
{ k => 'OAuth2', v => 'OAuth2' },
|
||||
{ k => 'SecureToken', v => 'SecureToken' },
|
||||
{ k => 'ServiceToken', v => 'ServiceToken' },
|
||||
{ k => 'Zimbra', v => 'ZimbraPreAuth' },
|
||||
{ k => 'ZimbraPreAuth',v => 'ZimbraPreAuth' },
|
||||
],
|
||||
default => 'Main',
|
||||
documentation => 'Handler type',
|
||||
|
|
|
@ -1192,7 +1192,7 @@ function templates(tpl,key) {
|
|||
"v" : "ServiceToken"
|
||||
},
|
||||
{
|
||||
"k" : "Zimbra",
|
||||
"k" : "ZimbraPreAuth",
|
||||
"v" : "ZimbraPreAuth"
|
||||
}
|
||||
],
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user