set password

This commit is contained in:
peintnermax
2024-10-16 11:20:23 +02:00
parent 20b3c6bfc2
commit 94bd6bc3f6
8 changed files with 52 additions and 31 deletions

View File

@@ -500,6 +500,18 @@ export async function passwordReset(userId: string) {
);
}
export async function setPassword(userId: string, password: string) {
return userService.setPassword(
{
userId,
newPassword: {
password,
},
},
{},
);
}
/**
*
* @param server