From 8708cbdc63a0f97ba0fb19fffc71cf568ef02a9a Mon Sep 17 00:00:00 2001 From: wonderlandpark Date: Fri, 9 Apr 2021 20:02:21 +0900 Subject: [PATCH] chore: added csrfCaptchaSchema --- utils/Yup.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/utils/Yup.ts b/utils/Yup.ts index 5fb28ea..7e7698e 100644 --- a/utils/Yup.ts +++ b/utils/Yup.ts @@ -267,6 +267,16 @@ export interface ManageBot { _csrf: string } +export const CsrfCaptchaSchema: Yup.SchemaOf = Yup.object({ + _csrf: Yup.string().required(), + _captcha: Yup.string().required() +}) + +export interface CsrfCaptcha { + _csrf: string + _captcha: string +} + export const DeveloperBotSchema: Yup.SchemaOf = Yup.object({ webhook: Yup.string() .matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.')