N
N
NubasLol2018-09-17 12:19:58
symfony
NubasLol, 2018-09-17 12:19:58

FOSUserBundle how to change console search to email field?

I use the email field for authorization. You need to change the user's password through the console, and the fos:user:change-password command asks for username, which in my case is not unique

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2018-09-18
@kylt_lichnosti

Not familiar with FOSUserBundle. But you can try to write your own command.
Command - https://symfony.com/doc/current/console.html
Get password hash - https://symfony.com/doc/current/security/password_...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question