Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Clan] misleading validation messages for updating clan #528

Closed
fcaps opened this issue Dec 7, 2023 · 0 comments
Closed

[Clan] misleading validation messages for updating clan #528

fcaps opened this issue Dec 7, 2023 · 0 comments

Comments

@fcaps
Copy link
Collaborator

fcaps commented Dec 7, 2023

if you update your clan via "clans/manage" the message "Please add a description for your clan" if you go over 1k chars is not helping.

see:

# src/backend/routes/views/clans/post/update.js
    body('clan_tag', 'Please indicate the clan tag - No special characters and 3 characters maximum').notEmpty().isLength({ max: 3 }),
    body('clan_description', 'Please add a description for your clan').notEmpty().isLength({ max: 1000 }),
    body('clan_name', "Please indicate your clan's name").notEmpty().isLength({ max: 40 }),

can we produce messages like "can not be empty" and "can not exceed 1000 chars" in different messages with "express-validator"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants