X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-CGI-Ex;a=blobdiff_plain;f=lib%2FCGI%2FEx%2FAuth.pm;fp=lib%2FCGI%2FEx%2FAuth.pm;h=70d754e47f0bf7ba9d68d75001f2807cb1df00ef;hp=7362ed1c3be750352526e39db8656a90016c9c91;hb=18123183bfb2737ea337306c9d705fca5b5e50d6;hpb=b6e904ff7b346908d0662aae9a9c5f7d976dd85e diff --git a/lib/CGI/Ex/Auth.pm b/lib/CGI/Ex/Auth.pm index 7362ed1..70d754e 100644 --- a/lib/CGI/Ex/Auth.pm +++ b/lib/CGI/Ex/Auth.pm @@ -18,7 +18,7 @@ use MIME::Base64 qw(encode_base64 decode_base64); use Digest::MD5 qw(md5_hex); use CGI::Ex; -$VERSION = '2.17'; +$VERSION = '2.18'; ###----------------------------------------------------------------### @@ -61,7 +61,7 @@ sub get_valid_auth { next if ! defined $hash->{$key}; $had_form_info ++ if $is_form; - ### if it looks like a bare username (as in they didn't have javascript)- add in other items + ### if it looks like a bare username (as in they didn't have javascript) - add in other items my $data; if ($is_form && $hash->{$key} !~ m|^[^/]+/| @@ -180,6 +180,7 @@ sub cookies { sub delete_cookie { my $self = shift; my $args = shift; + return $self->{'delete_cookie'}->($self, $args) if $self->{'delete_cookie'}; my $key = $args->{'key'}; $self->cgix->set_cookie({ -name => $key, @@ -193,6 +194,7 @@ sub delete_cookie { sub set_cookie { my $self = shift; my $args = shift; + return $self->{'set_cookie'}->($self, $args) if $self->{'set_cookie'}; my $key = $args->{'key'}; my $val = $args->{'val'}; $self->cgix->set_cookie({ @@ -207,6 +209,7 @@ sub set_cookie { sub location_bounce { my $self = shift; my $url = shift; + return $self->{'location_bounce'}->($self, $url) if $self->{'location_bounce'}; return $self->cgix->location_bounce($url); }