Ticket #9320: wp-app.diff
File wp-app.diff, 840 bytes (added by , 16 years ago) |
---|
-
wp-app.php
1492 1492 // If Basic Auth is working... 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 }1501 1495 } 1502 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; 1502 } 1503 1503 1504 return false; 1504 1505 } 1505 1506