Symfony security.password_encoder isPasswordValid is returning empty
问题 In Symfony 2.6, I am using the following method to encode my password. The password is successfully encoded and saved in the DB. $encoder = $this->container->get('security.password_encoder'); $encodedPwd = $encoder->encodePassword($adminUser, $plainPassword); When I try to validate the user supplied password provided in the login form as follows: $adminUser = $this->getDoctrine()->getManager()->getRepository("AcmeUserBundle:AdminUser")->findOneBy(array('username' => $_username)); $_password =