Changeset 10771
- Timestamp:
- 03/11/2009 10:49:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-app.php
r10751 r10771 1493 1493 if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) { 1494 1494 log_app("Basic Auth",$_SERVER['PHP_AUTH_USER']); 1495 $user = wp_authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']); 1496 if ( $user && !is_wp_error($user) ) { 1497 wp_set_current_user($user->ID); 1498 log_app("authenticate()", $_SERVER['PHP_AUTH_USER']); 1499 return true; 1500 } 1495 } 1496 1497 $user = wp_authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']); 1498 if ( $user && !is_wp_error($user) ) { 1499 wp_set_current_user($user->ID); 1500 log_app("authenticate()", $user->user_login); 1501 return true; 1501 1502 } 1502 1503
Note: See TracChangeset
for help on using the changeset viewer.