Password policy logical OR

How do I do a logical OR for password policy?

‘password’ => [
‘min_length’ => 10,
‘max_length’ => 255,
‘min_lowercase’ => 1,
‘min_uppercase’ => 1,
‘min_number’ => 1,
‘min_symbol’ => 1,
‘symbol_list’ => ‘!%*_-+=:./?’’,

I want 3 of the four character types (lowercase, uppercase, number, symbol). Is there a way to do that?


The default password config only requires a minimum of 6 characters:

    'password' => [
        'min_length' => 6,
        'min_lowercase' => null,
        'min_uppercase' => null,
        'min_number' => null,
        'min_symbol' => null,
        'symbol_list' => '`~!@#$%^&*()-=_+[]\{}|;:",./<>?\'',

Say you also want to require a minimum of 1 lowercase, uppercase, and number, you can set the following:

    'password' => [
        'min_length' => 6,
        'min_lowercase' => 1,
        'min_uppercase' => 1,
        'min_number' => 1,
        'min_symbol' => null,
        'symbol_list' => '`~!@#$%^&*()-=_+[]\{}|;:",./<>?\'',

Hi Jim,

Thank you for your quick response. I think you are saying that the policy only requires minimum of 1 lowercase AND 1 uppercase AND 1 number AND 1 from symbol list (ALL TRUE). I am asking how to pick 3 TRUE OR 1 FALSE other. I am trying to get Omeka S password to adhere to University password policy.

lowercase T T T T F
uppercase T T T F T
number T T F T T
symbol T F T T T


Note the default password config that I posted above. Note that min_lowercase, min_uppercase, min_number, and min_symbol are set to null. That means that, by default, there is no minimum requirement for lowercase, uppercase, number, or symbol characters.

From what I can tell, there is no way to configure Omeka in the way you describe.

1 Like