Commit 1d0a79ba authored by Christophe Maudoux's avatar Christophe Maudoux 🐛
Browse files

Fix returned values (#1954)

parent fb622fff
......@@ -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"
}
],
......
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