Changeset 5115 in subversion


Ignore:
Timestamp:
Aug 23, 2011 2:15:04 PM (21 months ago)
Author:
alec
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-0.6/plugins/http_authentication/http_authentication.php

    r4540 r5115  
    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.