...
Goto Global properties in your OpenMRS server Administration > Advanced Settings and navigate to section having properties prefixed with security.*.
Switch following settings on or off according to your implementation requirements.
security.passwordCannotMatchUsername
...
security.passwordRequiresUpperAndLowerCase .
Save settings and your are done!