fix password reset conflict

This commit is contained in:
peintnermax
2024-07-16 17:06:25 +02:00
parent ea44364950
commit 69d462dc59

View File

@@ -359,17 +359,10 @@ export async function setEmail(userId: string) {
* @param userId the id of the user where the email should be set
* @returns the newly set email
*/
export async function passwordReset(
server: ZitadelServer,
userId: string,
): Promise<any> {
const userservice = user.getUser(server);
return userservice.passwordReset(
export async function passwordReset(userId: string): Promise<any> {
return userService.passwordReset(
{
userId,
sendLink: {
notificationType: 1, // email
},
},
{},
);