From a78533e7639b8ef4c601595ea4043346c3a2316f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicole=20Miko=C5=82ajczyk?= Date: Wed, 21 May 2025 20:20:05 +0200 Subject: [PATCH] pl-api: support password change on shrimpnet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicole Mikołajczyk --- packages/pl-api/lib/client.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/pl-api/lib/client.ts b/packages/pl-api/lib/client.ts index fb076a340..1dfbd18e8 100644 --- a/packages/pl-api/lib/client.ts +++ b/packages/pl-api/lib/client.ts @@ -1445,6 +1445,16 @@ class PlApiClient { }, }); break; + case ICESHRIMP_NET: + await this.#getIceshrimpAccessToken(); + response = await this.request('/api/iceshrimp/auth/change-password', { + method: 'POST', + body: { + oldPassword: current_password, + newPassword: new_password, + }, + }); + break; case MITRA: response = await this.request('/api/v1/settings/change_password', { method: 'POST',