Hello, I am using the rest of openmrs api to register users but one of the requirements is that the username is the email.
I tried to save the email in the user name field and I got the following error “{” error “: {” message “:” [‘test@gmail.com’ failed to validate with reason: username: Username is invalid. It must be between 2 and 50 characters. Only letters, digits, \ ". ", \ "- ", and \ "_ " are allowed.] "
Is there a way that the email can be saved as if it were the username?
We have the same requirement and we are using openmrs sdk. where do we need to add user.requireEmailAsUsername=true so that we can take email as username.