No error tips for add user with firstname by one char

I found DHIS2 can’t add user when input the firstname just one char,and there is no warning for this. I have test on play.dhis2.com/2.37 and in my server.

say: One or more errors occurred, please see full details in import report.
but no info in log file.

O,just input a char in first name, but no tip for this

Hi @linxd

Thank you for your post! I’m not able to reproduce this. I tested in as well as the latest version and they all show the warning (Please enter a value between 4 and 80 characters long.):

my UI:

user name one char , ok:
1676591353188

===========demo for 2.37:====

1 Like

access this:

play.dhis2.org /2.37.9 /dhis-web-user/index.html#/users/new”

1 Like

Thank you @linxd! You’re right this is a bug in the front end, I’ve created a bug issue:

https://dhis2.atlassian.net/browse/DHIS2-14793

1 Like

Thanks 林晓东/@linxd

A validation check has been implemented on DHIS 2 Demo - Sierra Leone in the users app and will be included in the next 2.37 release:


(v2.38 and v2.39 already include an error message when not saving)

I have a question. Did you discover the error when trying to enter a character (for example, 林) as the surname? I think we should probably change the rules on the backend to make sure that people can enter their actual names :smile:.

1 Like