Skip to content

Commit

Permalink
Fixing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
remkade committed Aug 8, 2019
1 parent 3decd49 commit 2c0ddaa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions includes/class-endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public function authenticate() {
$creds = array();
// Allow the usage of the standard basic auth pattern
if ( isset( $_SERVER['PHP_AUTH_USER'] ) ) {
$creds['user_login'] = $_SERVER['PHP_AUTH_USER'];
$creds['user_password'] = $_SERVER['PHP_AUTH_PW'];
} else {
$creds['user_login'] = $_SERVER['HTTP_USER'];
$creds['user_password'] = $_SERVER['HTTP_PASSWORD'];
$creds['user_login'] = $_SERVER['PHP_AUTH_USER'];
$creds['user_password'] = $_SERVER['PHP_AUTH_PW'];
} else {
$creds['user_login'] = $_SERVER['HTTP_USER'];
$creds['user_password'] = $_SERVER['HTTP_PASSWORD'];
}
$creds['remember'] = false;
$user = wp_signon($creds, false);
Expand Down

0 comments on commit 2c0ddaa

Please sign in to comment.