Changeset 9f61af3 in github


Ignore:
Timestamp:
Aug 23, 2011 2:15:04 PM (21 months ago)
Author:
alecpl <alec@…>
Branches:
release-0.6
Children:
81fd879
Parents:
d43d4bc
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/http_authentication/http_authentication.php

    r5375e84 r9f61af3  
    66 * Make use of an existing HTTP authentication and perform login with the existing user credentials 
    77 * 
    8  * @version 1.2 
     8 * @version 1.3 
    99 * @author Thomas Bruederli 
    1010 */ 
     
    3131  function authenticate($args) 
    3232  { 
     33    // Allow entering other user data in login form, 
     34    // e.g. after log out (#1487953) 
     35    if (!empty($args['user'])) { 
     36        return $args; 
     37    } 
     38 
    3339    if (!empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['PHP_AUTH_PW'])) { 
    3440      $args['user'] = $_SERVER['PHP_AUTH_USER']; 
    3541      $args['pass'] = $_SERVER['PHP_AUTH_PW']; 
    3642    } 
    37      
     43 
    3844    $args['cookiecheck'] = false; 
    3945    $args['valid'] = true; 
    40    
     46 
    4147    return $args; 
    4248  } 
Note: See TracChangeset for help on using the changeset viewer.