You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
344 B
13 lines
344 B
import { readBody } from "h3";
|
|
import { resetPassword } from "../../services/auth";
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
const body = await readBody<{
|
|
token?: string;
|
|
new_password?: string;
|
|
}>(event);
|
|
return resetPassword(event, {
|
|
token: body.token ?? "",
|
|
new_password: body.new_password ?? "",
|
|
});
|
|
});
|
|
|