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

  fosuserbundle, symfony, symfony4

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

LEAVE A COMMENT