pl-api: support password change on shrimpnet

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-05-21 20:20:05 +02:00
parent 817f1b083d
commit a78533e763

View File

@ -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',