how to edit or add custom validation to FosUser validation from database – symfony 4

I have a problem!
I want to manage regex password by admin
In such a way that the administrator can manage all passwords by setting regex
I saved regex like this in database

{"regex":"^(?=.*[a-z])(?=.*[-!$%^@&*(#)_+|~=`{}[]:;<>?,.\/]).{8,}$","title":"__TITLE_FOR_SHOWING__"}

Please , help me.
thanks

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *