Done


On Thu, Apr 24, 2014 at 9:58 PM, Salma Amr <notifications@github.com> wrote:

> In
> Entangle/entangle-symfony/public/src/entangle/src/Megasoft/EntangleBundle/Controller/UserController.php:
>
> >
> >  /**
> >   * Gets the required information to view a certain user's profile
> >   * @author almgohar
> >   */
> >  class UserController extends Controller {
> > -
> > +/**
> > + * This Method edits all user information
> > + * @param \Symfony\Component\HttpFoundation\Request $request
> > + * @return \Symfony\Component\HttpFoundation\Response
> > + * @author menna
> > + */
> > +    public function editAction(Request $request) {
> > +        $requestContent = $request->getContent();
> > +        $jsonArray = json_decode($requestContent, true);
> > +        $sessionId = $request->headers->get('X-
> SESSION-ID');
> > +        $sesionRepo = $this->getDoctrine()->getRepository('MegasoftEntangleBundle:Session');
> > +        $currentSession = $sesionRepo->findOneBy(array('sessionId' => $sessionId));
> > +        $user = $currentSession->getUser();
>
> check whether the session id in invalid @Mennatarek<https://github.com/Mennatarek>
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ndomar/megasoft-14/pull/294/files#r11968730>
> .
>