From 50bc0cba2108cb8e7b0f110c160d8b84c47f82a9 Mon Sep 17 00:00:00 2001 From: Maurits van der Schee Date: Thu, 10 Aug 2023 07:56:24 +0200 Subject: [PATCH] build --- api.include.php | 6 +++--- api.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api.include.php b/api.include.php index 089890cc..0256b370 100644 --- a/api.include.php +++ b/api.include.php @@ -9988,7 +9988,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface 'remember' => false, ]); if ($user->ID) { - unset($user['user_pass']); + unset($user->data->user_pass); return $this->responder->success($user); } return $this->responder->error(ErrorCode::AUTHENTICATION_FAILED, $username); @@ -9997,7 +9997,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface if (is_user_logged_in()) { wp_logout(); $user = wp_get_current_user(); - unset($user['user_pass']); + unset($user->data->user_pass); return $this->responder->success($user); } return $this->responder->error(ErrorCode::AUTHENTICATION_REQUIRED, ''); @@ -10005,7 +10005,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface if ($method == 'GET' && $path == 'me') { if (is_user_logged_in()) { $user = wp_get_current_user(); - unset($user['user_pass']); + unset($user->data->user_pass); return $this->responder->success($user); } return $this->responder->error(ErrorCode::AUTHENTICATION_REQUIRED, ''); diff --git a/api.php b/api.php index 5dca13a5..cb6b92cb 100644 --- a/api.php +++ b/api.php @@ -9988,7 +9988,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface 'remember' => false, ]); if ($user->ID) { - unset($user['user_pass']); + unset($user->data->user_pass); return $this->responder->success($user); } return $this->responder->error(ErrorCode::AUTHENTICATION_FAILED, $username); @@ -9997,7 +9997,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface if (is_user_logged_in()) { wp_logout(); $user = wp_get_current_user(); - unset($user['user_pass']); + unset($user->data->user_pass); return $this->responder->success($user); } return $this->responder->error(ErrorCode::AUTHENTICATION_REQUIRED, ''); @@ -10005,7 +10005,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface if ($method == 'GET' && $path == 'me') { if (is_user_logged_in()) { $user = wp_get_current_user(); - unset($user['user_pass']); + unset($user->data->user_pass); return $this->responder->success($user); } return $this->responder->error(ErrorCode::AUTHENTICATION_REQUIRED, '');