From 2c0ddaad2c159880550ff81c8495f34803fee894 Mon Sep 17 00:00:00 2001 From: Kyle Leaders Date: Thu, 8 Aug 2019 20:43:01 +0000 Subject: [PATCH] Fixing formatting --- includes/class-endpoint.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/class-endpoint.php b/includes/class-endpoint.php index 208d60e..5da75e8 100644 --- a/includes/class-endpoint.php +++ b/includes/class-endpoint.php @@ -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);