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.');
    }