mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 22:30:23 +00:00
chore: added csrfCaptchaSchema
This commit is contained in:
parent
a15c3fba71
commit
8708cbdc63
10
utils/Yup.ts
10
utils/Yup.ts
@ -267,6 +267,16 @@ export interface ManageBot {
|
|||||||
_csrf: string
|
_csrf: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const CsrfCaptchaSchema: Yup.SchemaOf<CsrfCaptcha> = Yup.object({
|
||||||
|
_csrf: Yup.string().required(),
|
||||||
|
_captcha: Yup.string().required()
|
||||||
|
})
|
||||||
|
|
||||||
|
export interface CsrfCaptcha {
|
||||||
|
_csrf: string
|
||||||
|
_captcha: string
|
||||||
|
}
|
||||||
|
|
||||||
export const DeveloperBotSchema: Yup.SchemaOf<DeveloperBot> = Yup.object({
|
export const DeveloperBotSchema: Yup.SchemaOf<DeveloperBot> = Yup.object({
|
||||||
webhook: Yup.string()
|
webhook: Yup.string()
|
||||||
.matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.')
|
.matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user