improve security against injection (#2669)
* improve security against injection * fix shell injection through ipv4, ipv6 address Co-authored-by: 7megaumka7 <116706490+7megaumka7@users.noreply.github.com> --------- Co-authored-by: 7megaumka7 <116706490+7megaumka7@users.noreply.github.com>
This commit is contained in:
co-authored by
7megaumka7
parent
5f54fa3e58
commit
032347648d
@@ -1,8 +1,4 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
const Verify2faSchema = z.object({
|
||||
totpCode: z.string().min(6).max(6),
|
||||
});
|
||||
import { Verify2faSchema } from '#db/repositories/user/types';
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const { totpCode } = await readValidatedBody(
|
||||
|
||||
Reference in New Issue
Block a user