Answer the question
In order to leave comments, you need to log in
How to change the passed username before authorization?
In a symfony project, you need to implement authorization by mail or phone. Before querying the database, you need to bring the phone to the normal form "+79251234567"
So far, this is implemented by a function in the repository that fixes the phone before querying the database.
Maybe there is some way to change the username sent to security by the symfony component?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question