diff --git a/packages/napcat-webui-frontend/src/components/network_edit/generic_form.tsx b/packages/napcat-webui-frontend/src/components/network_edit/generic_form.tsx index bcc70a0a..33840659 100644 --- a/packages/napcat-webui-frontend/src/components/network_edit/generic_form.tsx +++ b/packages/napcat-webui-frontend/src/components/network_edit/generic_form.tsx @@ -180,7 +180,7 @@ const GenericForm = ({ export default GenericForm; export function random_token (length: number) { const chars = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%^&*()-_=+[]{}|;:,.<>?'; + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.~'; let result = ''; for (let i = 0; i < length; i++) { result += chars.charAt(Math.floor(Math.random() * chars.length));