minlen=8 ucredit=1 dcredit=1 ocredit=0 lcredit=0
I'm guessing that you want your passwords to be at least 8 characters, contain at least 1 uppercase character and 1 digit. If so, that is NOT what you have configured.
For that you should use:
minlen=8 ucredit=-1 dcredit=-1.
Explanation: the minlen algorithm uses "credits" to determine the length value. Suppose you had a 6 character password. minlength would be no less than 6. Then, wihtout using any of the credit values, you would get 1 "credit" for using lowercase characters, 1 credit for using uppercase characters and so on.
Thus, a password of
Hello! is 6 characters, +1 for using uppercase, +1 for using lower case, +1 for using special characters for a total minlen value of 9.
ucredit=1 dcredit=1 ocredit=0 lcredit=0, with the same password gives a length of 6, +1 for using uppercase, 0 for using lowercase and 0 for using special characters, for a length of 7. It does not FORCE you to use uppercase characters.
If you use a negative number for the credits, that requires you to have at least that many, and does NOT use credits.
minlength=8 ucredit=-1 dcredit=-1 ocredit=0 lcredit=0 will then require the password to be at least 8 characters long, contain at least 1 uppercase character and 1 digit.
Thus a password of
helloboy is 8 characters, but will fail.
Hellob0y will pass.
He$$ob0y will also pass.