Changeset 9f61af3 in github
- Timestamp:
- Aug 23, 2011 2:15:04 PM (21 months ago)
- Branches:
- release-0.6
- Children:
- 81fd879
- Parents:
- d43d4bc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/http_authentication/http_authentication.php
r5375e84 r9f61af3 6 6 * Make use of an existing HTTP authentication and perform login with the existing user credentials 7 7 * 8 * @version 1. 28 * @version 1.3 9 9 * @author Thomas Bruederli 10 10 */ … … 31 31 function authenticate($args) 32 32 { 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 33 39 if (!empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['PHP_AUTH_PW'])) { 34 40 $args['user'] = $_SERVER['PHP_AUTH_USER']; 35 41 $args['pass'] = $_SERVER['PHP_AUTH_PW']; 36 42 } 37 43 38 44 $args['cookiecheck'] = false; 39 45 $args['valid'] = true; 40 46 41 47 return $args; 42 48 }
Note: See TracChangeset
for help on using the changeset viewer.
