Symfony3.2 to symfony4 security.encoder_factory deprecated error
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4.
I had been made the changes as mentioned in Upgrading Symfony4.Also I installed all the required packages.Now I can make routing and successfully got my web page on the display,the problem I am facing is login form doesn't work.
In my login controller for symfony3.2 version,
I used security.encoder_factory service
And when I am running it in symfony4 it results:
The "security.encoder_factory" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.
My controller code for encoding password is:
public function loginAction(Request $request)
#$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt', true, 5000);
$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt');
$encoders = [
User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
];
$encoderFactory = new EncoderFactory($encoders);
$data = [
'error' => null,
'_username' => null,
];
if ($request->isMethod('POST'))
$_username = $request->request->get('_username');
$_password = $request->request->get('_password');
$data['_username'] = $_username;
$user = $this->getDoctrine()->getManager()
->getRepository("App:User")
->findOneBy(array('username' => $_username);
if (!$user)
$data['error'] = 'User-Id does not exist';
return $this->render(
'login.html.twig',
$data
);
$encoder = $encoderFactory->getEncoder($user);
$salt = $user->getSalt();
#$encoder = $this->encodePassword($_password, $salt);
if (!$encoder->isPasswordValid($user->getPassword(), $encoder))
$data['error'] = 'User-Id or Password not valid.';
return $this->render(
'login.html.twig',
$data
);
return $this->redirect($this->generateUrl('default__home_page'));
return $this->render(
'login.html.twig',
$data
);
My security for encoding is:
security:
encoders:
AppEntityUser: bcrypt
AppSecurityUserWebserviceUser: bcrypt
SymfonyComponentSecurityCoreUserUser: bcrypt
FOSUserBundleModelUserInterface: sha512
# https://symfony.com/doc/current/security.html#where-do-users-come-from- user-providers
providers:
#in_memory: memory: ~
our_db_provider:
entity:
class: App:User
property: username
fos_userbundle:
id: fos_user.user_provider.username_email
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
secured_area:
anonymous: ~
pattern: ^/s/login$
http_basic: ~
provider: fos_userbundle
user_checker: security.user_checker
form_login:
login_path: login_page
check_path: login_page
failure_handler: security.authentication.failure_handler
guard:
authenticators:
- AppSecurityLoginControllerAuthenticator
# activate different ways to authenticate
# http_basic: ~
# http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
# form_login: ~
# http://symfony.com/doc/current/cookbook/security/form_login_setup.html
logout:
path: /logout/
target: /login/
Is there any alternative way or service to encoding my password as the above code represents.
error:
No encoder has been configured for account "AppEntityUser".
at vendor/symfony/security/Core/Encoder/EncoderFactory.php:51
at SymfonyComponentSecurityCoreEncoderEncoderFactory->getEncoder(object(User))
(src/Controller/StudentController.php:65)
at AppControllerStudentController->loginAction(object(Request))
(vendor/symfony/http-kernel/HttpKernel.php:149)
at SymfonyComponentHttpKernelHttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:66)
at SymfonyComponentHttpKernelHttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:188)
at SymfonyComponentHttpKernelKernel->handle(object(Request))
(public/index.php:37)
Thanks in advance.
symfony4 symfony-3.2
add a comment |
I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4.
I had been made the changes as mentioned in Upgrading Symfony4.Also I installed all the required packages.Now I can make routing and successfully got my web page on the display,the problem I am facing is login form doesn't work.
In my login controller for symfony3.2 version,
I used security.encoder_factory service
And when I am running it in symfony4 it results:
The "security.encoder_factory" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.
My controller code for encoding password is:
public function loginAction(Request $request)
#$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt', true, 5000);
$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt');
$encoders = [
User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
];
$encoderFactory = new EncoderFactory($encoders);
$data = [
'error' => null,
'_username' => null,
];
if ($request->isMethod('POST'))
$_username = $request->request->get('_username');
$_password = $request->request->get('_password');
$data['_username'] = $_username;
$user = $this->getDoctrine()->getManager()
->getRepository("App:User")
->findOneBy(array('username' => $_username);
if (!$user)
$data['error'] = 'User-Id does not exist';
return $this->render(
'login.html.twig',
$data
);
$encoder = $encoderFactory->getEncoder($user);
$salt = $user->getSalt();
#$encoder = $this->encodePassword($_password, $salt);
if (!$encoder->isPasswordValid($user->getPassword(), $encoder))
$data['error'] = 'User-Id or Password not valid.';
return $this->render(
'login.html.twig',
$data
);
return $this->redirect($this->generateUrl('default__home_page'));
return $this->render(
'login.html.twig',
$data
);
My security for encoding is:
security:
encoders:
AppEntityUser: bcrypt
AppSecurityUserWebserviceUser: bcrypt
SymfonyComponentSecurityCoreUserUser: bcrypt
FOSUserBundleModelUserInterface: sha512
# https://symfony.com/doc/current/security.html#where-do-users-come-from- user-providers
providers:
#in_memory: memory: ~
our_db_provider:
entity:
class: App:User
property: username
fos_userbundle:
id: fos_user.user_provider.username_email
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
secured_area:
anonymous: ~
pattern: ^/s/login$
http_basic: ~
provider: fos_userbundle
user_checker: security.user_checker
form_login:
login_path: login_page
check_path: login_page
failure_handler: security.authentication.failure_handler
guard:
authenticators:
- AppSecurityLoginControllerAuthenticator
# activate different ways to authenticate
# http_basic: ~
# http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
# form_login: ~
# http://symfony.com/doc/current/cookbook/security/form_login_setup.html
logout:
path: /logout/
target: /login/
Is there any alternative way or service to encoding my password as the above code represents.
error:
No encoder has been configured for account "AppEntityUser".
at vendor/symfony/security/Core/Encoder/EncoderFactory.php:51
at SymfonyComponentSecurityCoreEncoderEncoderFactory->getEncoder(object(User))
(src/Controller/StudentController.php:65)
at AppControllerStudentController->loginAction(object(Request))
(vendor/symfony/http-kernel/HttpKernel.php:149)
at SymfonyComponentHttpKernelHttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:66)
at SymfonyComponentHttpKernelHttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:188)
at SymfonyComponentHttpKernelKernel->handle(object(Request))
(public/index.php:37)
Thanks in advance.
symfony4 symfony-3.2
add a comment |
I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4.
I had been made the changes as mentioned in Upgrading Symfony4.Also I installed all the required packages.Now I can make routing and successfully got my web page on the display,the problem I am facing is login form doesn't work.
In my login controller for symfony3.2 version,
I used security.encoder_factory service
And when I am running it in symfony4 it results:
The "security.encoder_factory" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.
My controller code for encoding password is:
public function loginAction(Request $request)
#$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt', true, 5000);
$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt');
$encoders = [
User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
];
$encoderFactory = new EncoderFactory($encoders);
$data = [
'error' => null,
'_username' => null,
];
if ($request->isMethod('POST'))
$_username = $request->request->get('_username');
$_password = $request->request->get('_password');
$data['_username'] = $_username;
$user = $this->getDoctrine()->getManager()
->getRepository("App:User")
->findOneBy(array('username' => $_username);
if (!$user)
$data['error'] = 'User-Id does not exist';
return $this->render(
'login.html.twig',
$data
);
$encoder = $encoderFactory->getEncoder($user);
$salt = $user->getSalt();
#$encoder = $this->encodePassword($_password, $salt);
if (!$encoder->isPasswordValid($user->getPassword(), $encoder))
$data['error'] = 'User-Id or Password not valid.';
return $this->render(
'login.html.twig',
$data
);
return $this->redirect($this->generateUrl('default__home_page'));
return $this->render(
'login.html.twig',
$data
);
My security for encoding is:
security:
encoders:
AppEntityUser: bcrypt
AppSecurityUserWebserviceUser: bcrypt
SymfonyComponentSecurityCoreUserUser: bcrypt
FOSUserBundleModelUserInterface: sha512
# https://symfony.com/doc/current/security.html#where-do-users-come-from- user-providers
providers:
#in_memory: memory: ~
our_db_provider:
entity:
class: App:User
property: username
fos_userbundle:
id: fos_user.user_provider.username_email
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
secured_area:
anonymous: ~
pattern: ^/s/login$
http_basic: ~
provider: fos_userbundle
user_checker: security.user_checker
form_login:
login_path: login_page
check_path: login_page
failure_handler: security.authentication.failure_handler
guard:
authenticators:
- AppSecurityLoginControllerAuthenticator
# activate different ways to authenticate
# http_basic: ~
# http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
# form_login: ~
# http://symfony.com/doc/current/cookbook/security/form_login_setup.html
logout:
path: /logout/
target: /login/
Is there any alternative way or service to encoding my password as the above code represents.
error:
No encoder has been configured for account "AppEntityUser".
at vendor/symfony/security/Core/Encoder/EncoderFactory.php:51
at SymfonyComponentSecurityCoreEncoderEncoderFactory->getEncoder(object(User))
(src/Controller/StudentController.php:65)
at AppControllerStudentController->loginAction(object(Request))
(vendor/symfony/http-kernel/HttpKernel.php:149)
at SymfonyComponentHttpKernelHttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:66)
at SymfonyComponentHttpKernelHttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:188)
at SymfonyComponentHttpKernelKernel->handle(object(Request))
(public/index.php:37)
Thanks in advance.
symfony4 symfony-3.2
I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4.
I had been made the changes as mentioned in Upgrading Symfony4.Also I installed all the required packages.Now I can make routing and successfully got my web page on the display,the problem I am facing is login form doesn't work.
In my login controller for symfony3.2 version,
I used security.encoder_factory service
And when I am running it in symfony4 it results:
The "security.encoder_factory" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.
My controller code for encoding password is:
public function loginAction(Request $request)
#$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt', true, 5000);
$defaultEncoder = new MessageDigestPasswordEncoder('bcrypt');
$encoders = [
User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
];
$encoderFactory = new EncoderFactory($encoders);
$data = [
'error' => null,
'_username' => null,
];
if ($request->isMethod('POST'))
$_username = $request->request->get('_username');
$_password = $request->request->get('_password');
$data['_username'] = $_username;
$user = $this->getDoctrine()->getManager()
->getRepository("App:User")
->findOneBy(array('username' => $_username);
if (!$user)
$data['error'] = 'User-Id does not exist';
return $this->render(
'login.html.twig',
$data
);
$encoder = $encoderFactory->getEncoder($user);
$salt = $user->getSalt();
#$encoder = $this->encodePassword($_password, $salt);
if (!$encoder->isPasswordValid($user->getPassword(), $encoder))
$data['error'] = 'User-Id or Password not valid.';
return $this->render(
'login.html.twig',
$data
);
return $this->redirect($this->generateUrl('default__home_page'));
return $this->render(
'login.html.twig',
$data
);
My security for encoding is:
security:
encoders:
AppEntityUser: bcrypt
AppSecurityUserWebserviceUser: bcrypt
SymfonyComponentSecurityCoreUserUser: bcrypt
FOSUserBundleModelUserInterface: sha512
# https://symfony.com/doc/current/security.html#where-do-users-come-from- user-providers
providers:
#in_memory: memory: ~
our_db_provider:
entity:
class: App:User
property: username
fos_userbundle:
id: fos_user.user_provider.username_email
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
secured_area:
anonymous: ~
pattern: ^/s/login$
http_basic: ~
provider: fos_userbundle
user_checker: security.user_checker
form_login:
login_path: login_page
check_path: login_page
failure_handler: security.authentication.failure_handler
guard:
authenticators:
- AppSecurityLoginControllerAuthenticator
# activate different ways to authenticate
# http_basic: ~
# http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
# form_login: ~
# http://symfony.com/doc/current/cookbook/security/form_login_setup.html
logout:
path: /logout/
target: /login/
Is there any alternative way or service to encoding my password as the above code represents.
error:
No encoder has been configured for account "AppEntityUser".
at vendor/symfony/security/Core/Encoder/EncoderFactory.php:51
at SymfonyComponentSecurityCoreEncoderEncoderFactory->getEncoder(object(User))
(src/Controller/StudentController.php:65)
at AppControllerStudentController->loginAction(object(Request))
(vendor/symfony/http-kernel/HttpKernel.php:149)
at SymfonyComponentHttpKernelHttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:66)
at SymfonyComponentHttpKernelHttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:188)
at SymfonyComponentHttpKernelKernel->handle(object(Request))
(public/index.php:37)
Thanks in advance.
symfony4 symfony-3.2
symfony4 symfony-3.2
edited Nov 15 '18 at 13:54
A.JRJ
asked Nov 15 '18 at 6:59
A.JRJA.JRJ
548
548
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
See doc :
https://symfony.com/doc/current/components/security/authentication.html#the-password-encoder-factory
You can get encoder in you controller this way.
EDIT :
Here an example :
$defaultEncoder = new MessageDigestPasswordEncoder('sha512', true, 5000);
$encoders = [
User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
];
$encoderFactory = new EncoderFactory($encoders);
$user = new User('test', null); // The user you want to authenticate
$password = $encoderFactory->getEncoder($user)->encodePassword('myPassword', 'mySalt');
EDIT 2 :
You have to defined YOUR user class there :
$encoders = [
AppEntityUser::class => $defaultEncoder,
];
Check you're not using User Symfony class.
I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code
– A.JRJ
Nov 15 '18 at 10:24
I updated the code. If you have any question, tell me. You can post your user provider ?
– Thomas Lefetz
Nov 15 '18 at 12:01
I got error asNo encoder has been configured for account "AppEntityUser"
but I configured this in security.yaml
– A.JRJ
Nov 15 '18 at 12:47
Can you post your code and security.yml ?
– Thomas Lefetz
Nov 15 '18 at 12:52
I updated the question with code
– A.JRJ
Nov 15 '18 at 13:11
|
show 4 more comments
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53313999%2fsymfony3-2-to-symfony4-security-encoder-factory-deprecated-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
See doc :
https://symfony.com/doc/current/components/security/authentication.html#the-password-encoder-factory
You can get encoder in you controller this way.
EDIT :
Here an example :
$defaultEncoder = new MessageDigestPasswordEncoder('sha512', true, 5000);
$encoders = [
User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
];
$encoderFactory = new EncoderFactory($encoders);
$user = new User('test', null); // The user you want to authenticate
$password = $encoderFactory->getEncoder($user)->encodePassword('myPassword', 'mySalt');
EDIT 2 :
You have to defined YOUR user class there :
$encoders = [
AppEntityUser::class => $defaultEncoder,
];
Check you're not using User Symfony class.
I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code
– A.JRJ
Nov 15 '18 at 10:24
I updated the code. If you have any question, tell me. You can post your user provider ?
– Thomas Lefetz
Nov 15 '18 at 12:01
I got error asNo encoder has been configured for account "AppEntityUser"
but I configured this in security.yaml
– A.JRJ
Nov 15 '18 at 12:47
Can you post your code and security.yml ?
– Thomas Lefetz
Nov 15 '18 at 12:52
I updated the question with code
– A.JRJ
Nov 15 '18 at 13:11
|
show 4 more comments
See doc :
https://symfony.com/doc/current/components/security/authentication.html#the-password-encoder-factory
You can get encoder in you controller this way.
EDIT :
Here an example :
$defaultEncoder = new MessageDigestPasswordEncoder('sha512', true, 5000);
$encoders = [
User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
];
$encoderFactory = new EncoderFactory($encoders);
$user = new User('test', null); // The user you want to authenticate
$password = $encoderFactory->getEncoder($user)->encodePassword('myPassword', 'mySalt');
EDIT 2 :
You have to defined YOUR user class there :
$encoders = [
AppEntityUser::class => $defaultEncoder,
];
Check you're not using User Symfony class.
I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code
– A.JRJ
Nov 15 '18 at 10:24
I updated the code. If you have any question, tell me. You can post your user provider ?
– Thomas Lefetz
Nov 15 '18 at 12:01
I got error asNo encoder has been configured for account "AppEntityUser"
but I configured this in security.yaml
– A.JRJ
Nov 15 '18 at 12:47
Can you post your code and security.yml ?
– Thomas Lefetz
Nov 15 '18 at 12:52
I updated the question with code
– A.JRJ
Nov 15 '18 at 13:11
|
show 4 more comments
See doc :
https://symfony.com/doc/current/components/security/authentication.html#the-password-encoder-factory
You can get encoder in you controller this way.
EDIT :
Here an example :
$defaultEncoder = new MessageDigestPasswordEncoder('sha512', true, 5000);
$encoders = [
User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
];
$encoderFactory = new EncoderFactory($encoders);
$user = new User('test', null); // The user you want to authenticate
$password = $encoderFactory->getEncoder($user)->encodePassword('myPassword', 'mySalt');
EDIT 2 :
You have to defined YOUR user class there :
$encoders = [
AppEntityUser::class => $defaultEncoder,
];
Check you're not using User Symfony class.
See doc :
https://symfony.com/doc/current/components/security/authentication.html#the-password-encoder-factory
You can get encoder in you controller this way.
EDIT :
Here an example :
$defaultEncoder = new MessageDigestPasswordEncoder('sha512', true, 5000);
$encoders = [
User::class => $defaultEncoder, // Your user class. This line specify you ant sha512 encoder for this user class
];
$encoderFactory = new EncoderFactory($encoders);
$user = new User('test', null); // The user you want to authenticate
$password = $encoderFactory->getEncoder($user)->encodePassword('myPassword', 'mySalt');
EDIT 2 :
You have to defined YOUR user class there :
$encoders = [
AppEntityUser::class => $defaultEncoder,
];
Check you're not using User Symfony class.
edited Nov 15 '18 at 13:14
answered Nov 15 '18 at 9:29
Thomas LefetzThomas Lefetz
1215
1215
I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code
– A.JRJ
Nov 15 '18 at 10:24
I updated the code. If you have any question, tell me. You can post your user provider ?
– Thomas Lefetz
Nov 15 '18 at 12:01
I got error asNo encoder has been configured for account "AppEntityUser"
but I configured this in security.yaml
– A.JRJ
Nov 15 '18 at 12:47
Can you post your code and security.yml ?
– Thomas Lefetz
Nov 15 '18 at 12:52
I updated the question with code
– A.JRJ
Nov 15 '18 at 13:11
|
show 4 more comments
I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code
– A.JRJ
Nov 15 '18 at 10:24
I updated the code. If you have any question, tell me. You can post your user provider ?
– Thomas Lefetz
Nov 15 '18 at 12:01
I got error asNo encoder has been configured for account "AppEntityUser"
but I configured this in security.yaml
– A.JRJ
Nov 15 '18 at 12:47
Can you post your code and security.yml ?
– Thomas Lefetz
Nov 15 '18 at 12:52
I updated the question with code
– A.JRJ
Nov 15 '18 at 13:11
I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code
– A.JRJ
Nov 15 '18 at 10:24
I didn't got cleared from the docs that why I am here...Can you suggest me how to overwrite the above code
– A.JRJ
Nov 15 '18 at 10:24
I updated the code. If you have any question, tell me. You can post your user provider ?
– Thomas Lefetz
Nov 15 '18 at 12:01
I updated the code. If you have any question, tell me. You can post your user provider ?
– Thomas Lefetz
Nov 15 '18 at 12:01
I got error as
No encoder has been configured for account "AppEntityUser"
but I configured this in security.yaml– A.JRJ
Nov 15 '18 at 12:47
I got error as
No encoder has been configured for account "AppEntityUser"
but I configured this in security.yaml– A.JRJ
Nov 15 '18 at 12:47
Can you post your code and security.yml ?
– Thomas Lefetz
Nov 15 '18 at 12:52
Can you post your code and security.yml ?
– Thomas Lefetz
Nov 15 '18 at 12:52
I updated the question with code
– A.JRJ
Nov 15 '18 at 13:11
I updated the question with code
– A.JRJ
Nov 15 '18 at 13:11
|
show 4 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53313999%2fsymfony3-2-to-symfony4-security-encoder-factory-deprecated-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown