mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
feat: added CsrfToken input
This commit is contained in:
parent
cc199e328c
commit
5769f90fbb
11
components/Form/CsrfToken.tsx
Normal file
11
components/Form/CsrfToken.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import { Field } from 'formik'
|
||||
|
||||
const CsrfToken = ({ token }:CsrfTokenProps):JSX.Element => {
|
||||
return <Field name='_csrf' hidden value={token} readOnly />
|
||||
}
|
||||
|
||||
interface CsrfTokenProps {
|
||||
token: string
|
||||
}
|
||||
|
||||
export default CsrfToken
|
||||
Loading…
x
Reference in New Issue
Block a user