Guest User

Untitled

a guest
Oct 22nd, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $encoder = $this->container->get('security.password_encoder');
  2. $encodedPwd = $encoder->encodePassword($adminUser, $plainPassword);
  3.  
  4. $adminUser = $this->getDoctrine()->getManager()->getRepository("AcmeUserBundle:AdminUser")->findOneBy(array('username' => $_username));
  5. $_password = $request->request->get('_password');
  6.  
  7. $encoder = $this->container->get('security.password_encoder');
  8. echo $encoder->isPasswordValid($adminUser, $_password))
Add Comment
Please, Sign In to add comment