pastvu icon indicating copy to clipboard operation
pastvu copied to clipboard

Validation rule for "real name" field

Open anvaruk opened this issue 3 years ago • 2 comments

Validation rule for "real name" field need to be adjusted as it brakes the template in some cases e.g https://pastvu.com/p/1384031

image

image

anvaruk avatar Jun 07 '22 17:06 anvaruk

The profile page also shortens those fields: image

Should we limit length for all those fields and validate?

kabalin avatar Jun 07 '22 17:06 kabalin

When working on this, consider implementing validation through Mongoose schema (https://mongoosejs.com/docs/schematypes.html#string-validators) and propagate error to the UI. This may be a good start for using localization (define language string keys in the schema, make them replaced with actual string through localization framework #257)

kabalin avatar Jul 03 '22 20:07 kabalin