KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using FOSUserBundle in my application. I would like to do two things via HTTP services: Check password. The service could look like this (the password wouldn't be encrypted): public function checkPasswordValidity($userId, $password) { $user = $this->getDoctrine() ->getRepository('MyCompany\UserBundle\Entity\User') ->find($userId); if (specialFunction($user , $password)) echo 'Valid Password'; else echo 'Invalid Password'; } Create a new user via another HTTP service. The parameters would be the username and the password.
Tags (comma-separated)
Save Edits
Cancel