You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2002/01/11 17:45:30 UTC
get_basic_auth_pw doc update
hi guys...
here is a doc update for get_basic_auth_pw.
the discrepancy was noted in this thread:
http://marc.theaimsgroup.com/?t=101068887900002&r=1&w=2
and spotted by, uh, "The Sapphire Cat" :)
--Geoff
Index: Apache/Apache.pm
===================================================================
RCS file: /home/cvspublic/modperl/Apache/Apache.pm,v
retrieving revision 1.67
diff -u -r1.67 Apache.pm
--- Apache/Apache.pm 2 Jan 2002 09:41:23 -0000 1.67
+++ Apache/Apache.pm 11 Jan 2002 16:41:21 -0000
@@ -826,8 +826,9 @@
=item $r-E<gt>get_basic_auth_pw
-If the current request is protected by Basic authentication,
-this method will return 0, otherwise -1.
+If the current request is protected by Basic authentication, this
+method will return OK. Otherwise, it will return a value that
+ought to be propagated back to the client (typically AUTH_REQUIRED).
The second return value will be the decoded password sent by the
client.
($ret, $sent_pw) = $r->get_basic_auth_pw;
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: get_basic_auth_pw doc update
Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
> hi guys...
>
> here is a doc update for get_basic_auth_pw.
>
> the discrepancy was noted in this thread:
> http://marc.theaimsgroup.com/?t=101068887900002&r=1&w=2
> and spotted by, uh, "The Sapphire Cat" :)
thanks Geoff, committed.
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: get_basic_auth_pw doc update
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
damn text wrapping...
Index: Apache/Apache.pm
===================================================================
RCS file: /home/cvspublic/modperl/Apache/Apache.pm,v
retrieving revision 1.67
diff -u -r1.67 Apache.pm
--- Apache/Apache.pm 2 Jan 2002 09:41:23 -0000 1.67
+++ Apache/Apache.pm 11 Jan 2002 16:41:21 -0000
@@ -826,8 +826,9 @@
=item $r-E<gt>get_basic_auth_pw
-If the current request is protected by Basic authentication,
-this method will return 0, otherwise -1.
+If the current request is protected by Basic authentication, this
+method will return OK. Otherwise, it will return a value that
+ought to be propagated back to the client (typically AUTH_REQUIRED).
The second return value will be the decoded password sent by the client.
($ret, $sent_pw) = $r->get_basic_auth_pw;
Geoffrey Young wrote:
>
> hi guys...
>
> here is a doc update for get_basic_auth_pw.
>
> the discrepancy was noted in this thread:
> http://marc.theaimsgroup.com/?t=101068887900002&r=1&w=2
> and spotted by, uh, "The Sapphire Cat" :)
>
> --Geoff
>
> Index: Apache/Apache.pm
> ===================================================================
> RCS file: /home/cvspublic/modperl/Apache/Apache.pm,v
> retrieving revision 1.67
> diff -u -r1.67 Apache.pm
> --- Apache/Apache.pm 2 Jan 2002 09:41:23 -0000 1.67
> +++ Apache/Apache.pm 11 Jan 2002 16:41:21 -0000
> @@ -826,8 +826,9 @@
>
> =item $r-E<gt>get_basic_auth_pw
>
> -If the current request is protected by Basic authentication,
> -this method will return 0, otherwise -1.
> +If the current request is protected by Basic authentication, this
> +method will return OK. Otherwise, it will return a value that
> +ought to be propagated back to the client (typically AUTH_REQUIRED).
> The second return value will be the decoded password sent by the
> client.
>
> ($ret, $sent_pw) = $r->get_basic_auth_pw;
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org