pl-api: support password change on shrimpnet
Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -1445,6 +1445,16 @@ class PlApiClient {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
break;
|
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:
|
case MITRA:
|
||||||
response = await this.request('/api/v1/settings/change_password', {
|
response = await this.request('/api/v1/settings/change_password', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user