Ignore:
Timestamp:
02/20/12 16:10:01 (12 years ago)
Author:
nanardon
Message:
  • check there is Authorization header
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/lib/Catalyst/Authentication/Credential/La.pm

    r890 r895  
    9999sub _login_auth { 
    100100    my ($self, $c, $realm, $authinfo) = @_; 
    101     my $authheader = $c->req->headers->header('Authorization'); 
     101    my $authheader = $c->req->headers->header('Authorization') 
     102        or do { 
     103        $c->log->debug('No Authorization header found');    
     104        return; 
     105    }; 
    102106    # TODO check auth type 
    103107    my ($type, $base64) = $authheader =~ /(\w+) (\S+)/; 
Note: See TracChangeset for help on using the changeset viewer.