File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use Apache2::Access ();
88use  Apache2::Const -compile  =>  qw( OK HTTP_UNAUTHORIZED)  ;
99
1010sub  auth_any  {
11+     my  $self  = shift ;
1112    my  $r  = shift ;
1213
1314    my  ($res , $sent_pw ) = $r -> get_basic_auth_pw;
@@ -30,9 +31,7 @@ sub handler {
3031
3132    return  Apache2::Const::HTTP_UNAUTHORIZED unless  $user ;
3233
33-     my  ($u , @allowed ) = split  /\s +/, $r -> requires-> [0]-> {requirement };
34- 
35-     return  Apache2::Const::HTTP_UNAUTHORIZED unless  grep  { $_  eq  $user  } @allowed ;
34+     return  Apache2::Const::HTTP_UNAUTHORIZED unless  " dougm"   eq  $user ;
3635
3736    Apache2::Const::OK;
3837}
@@ -43,6 +42,6 @@ require user dougm
4342AuthType Basic 
4443AuthName simple 
4544PerlModule          TestHooks::authz 
46- PerlAuthenHandler   TestHooks::authz:: auth_any 
45+ PerlAuthenHandler   TestHooks::authz-> auth_any 
4746PerlResponseHandler Apache::TestHandler::ok1 
4847SetHandler modperl 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments