mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-31 04:57:35 -05:00
13 lines
353 B
TypeScript
13 lines
353 B
TypeScript
import { ResetPasswordSchema } from "~~/shared/api-types";
|
|
|
|
export default defineEventHandler(async (event): Promise<void> => {
|
|
const body = await readZodBody(event, ResetPasswordSchema);
|
|
const grpc = useApiGrpc(event);
|
|
|
|
await grpc.resetPassword({
|
|
password: body.password,
|
|
passwordConfirm: body.passwordConfirm,
|
|
token: body.resetToken,
|
|
})
|
|
});
|