can you please help me to add a custom error to Postfixadmin. In the config.local.php file I add the following to $CONF['password_validation'] = array()
'/([-#*.!@$%^&(){}:;<>,.?~_+=|].*){1}/' => 'x_no_special',
Regexp works ok, now I want to add a description of the error. I do it like according to the manual, I add after the array:
$CONF['language_hook'] = 'x_no_special';
$PALANG['x_no_special'] = "123";
But no error is not showing. If I directly add $PALANG['x_no_special'] = "123" to /languages/en.lang then everything is ok
My config file looks like:
<?php
$CONF['password_validation'] = array(
'/.{8}/' => 'password_too_short 8', # minimum length 5 characters
'/([a-zA-Z].*){3}/' => 'password_no_characters 3', # must contain at least 3 characters
'/([0-9].*){2}/' => 'password_no_digits 2', # must contain at least 2 digits
'/([-#*.!@$%^&(){}:;<>,.?~_+=|].*){1}/' => 'x_no_special', #CUSTOM must contain at least 1 special character
);
$CONF['language_hook'] = 'x_no_special';
$PALANG['x_no_special'] = "123";
?>