- Timestamp:
- 12/28/12 15:05:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/Catalyst/Authentication/Credential/La.pm
r895 r1207 99 99 sub _login_auth { 100 100 my ($self, $c, $realm, $authinfo) = @_; 101 my $authheader = $c->req->headers->header('Authorization') 102 or do { 103 $c->log->debug('No Authorization header found'); 104 return; 105 }; 106 # TODO check auth type 107 my ($type, $base64) = $authheader =~ /(\w+) (\S+)/; 108 ($authinfo->{username}, $authinfo->{password}) 109 = decode_base64($base64) =~ /^([^:]+):(.*)/; 101 if (!$authinfo) { 102 my $authheader = $c->req->headers->header('Authorization') 103 or do { 104 $c->log->debug('No Authorization header found'); 105 return; 106 }; 107 # TODO check auth type 108 my ($type, $base64) = $authheader =~ /(\w+) (\S+)/; 109 ($authinfo->{username}, $authinfo->{password}) 110 = decode_base64($base64) =~ /^([^:]+):(.*)/; 111 } 110 112 111 113 if($c->model('Accounts')->db->connect(
Note: See TracChangeset
for help on using the changeset viewer.