src/Phlexible/Bundle/UserBundle/Controller/OptionsController.php
public function savepasswordAction(Request $request)
    {
        $user = $this->getUser();

        if ($request->request->has('password')) {
            $user->setPlainPassword($request->request->get('password'));
        }

        $this->get('phlexible_user.user_manager')->updateUser($user);

        return new ResultResponse(true, 'User password saved.');
    }
public function savepasswordAction(Request $request)
    {
        $user = $this->getUser();

        if ($request->request->has('password')) {
            $user->setPlainPassword($request->request->get('password'));
        }

        $this->get('phlexible_user.user_manager')->updateUser($user);

        return new ResultResponse(true, 'User password saved.');
    }
public function savepasswordAction ( Request $ request ) { $ user = $ this -> getUser ( ) ; if ( $ request -> request -> has ( 'password' ) ) { $ user -> setPlainPassword ( $ request -> request -> get ( 'password' ) ) ; } $ this -> get ( 'phlexible_user.user_manager' ) -> updateUser ( $ user ) ; return new ResultResponse ( true , 'User password saved.' ) ; }
Save password.

@param Request $request

@return ResultResponse
@Route("/savepassword", name="users_options_savepassword")
Save password .