Closed Jomshir98 closed 3 months ago
We already have a tool for generating user-friendly error based on validation. So to anyone implementing this use the following code to obtain a validation function that can be called to get the error:
const displayNameValidator = FormCreateStringValidator(DisplayNameSchema, 'Display name');
The account display name has a limited format, but client's UI doesn't validate it before attempting to set it. As the message to change settings if one-off, there is no reaction about this failing as it gets silently rejected. We need to add a warning in UI when the new name is not valid.