stas        02/01/13 19:12:51

  Modified:    Apache   Apache.pm
  Log:
  in get_basic_auth_pw doc use the constants as return codes rather than
  numbers. plus, return value is not always -1 in case of unprotected
  service.
  
  Submitted by: Geoffrey Young <[EMAIL PROTECTED]>
  Reviewed by:  stas
  
  Revision  Changes    Path
  1.68      +3 -2      modperl/Apache/Apache.pm
  
  Index: Apache.pm
  ===================================================================
  RCS file: /home/cvs/modperl/Apache/Apache.pm,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- Apache.pm 2 Jan 2002 09:41:23 -0000       1.67
  +++ Apache.pm 14 Jan 2002 03:12:51 -0000      1.68
  @@ -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;
  
  
  


Reply via email to