Some little things
This commit is contained in:
parent
798498befc
commit
034e5a0142
@ -65,7 +65,7 @@ sub run {
|
|||||||
my $ret = $class->SUPER::run(@_);
|
my $ret = $class->SUPER::run(@_);
|
||||||
|
|
||||||
# Continue only if user is authorized
|
# Continue only if user is authorized
|
||||||
return $ret unless $ret eq OK;
|
return $ret unless ( $ret == OK );
|
||||||
|
|
||||||
# Get current URI
|
# Get current URI
|
||||||
my $args = $r->args;
|
my $args = $r->args;
|
||||||
@ -118,15 +118,10 @@ sub _buildZimbraPreAuthUrl {
|
|||||||
'debug' );
|
'debug' );
|
||||||
|
|
||||||
# Build PreAuth URL
|
# Build PreAuth URL
|
||||||
my $zimbra_url;
|
my $zimbra_url =
|
||||||
$zimbra_url .= $url;
|
"$url?account=$account&by=$by×tamp=$timestamp&expires=$expires&preauth=$computed_value";
|
||||||
$zimbra_url .= '?account=' . $account;
|
|
||||||
$zimbra_url .= '&by=' . $by;
|
|
||||||
$zimbra_url .= '×tamp=' . $timestamp;
|
|
||||||
$zimbra_url .= '&expires=' . $expires;
|
|
||||||
$zimbra_url .= '&preauth=' . $computed_value;
|
|
||||||
|
|
||||||
$class->lmLog( "Build Zimbra URL $zimbra_url", 'debug' );
|
$class->lmLog( "Build Zimbra URL: $zimbra_url", 'debug' );
|
||||||
|
|
||||||
return $zimbra_url;
|
return $zimbra_url;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user