Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Søren Corneliussen 7 posts 28 karma points
    Jan 02, 2012 @ 21:21
    Søren Corneliussen
    0

    MemberService API - password and email not stored?

    Hi

    I am calling the memberservice api from a WinForm application and everything is configured and seems to work fine. But the password and email is not stored in the umbraco database (table cmsMembers). What do I do wrong?

    ---------------------

     

    UmbracoMemberService.

     

    memberServiceSoapClient svc = new UmbracoMemberService.memberServiceSoapClient();

    UmbracoMemberService.

     

    memberCarrier mc = new UmbracoMemberService.memberCarrier();

    mc.MembertypeId = 1083; // this is a valid membertype

    mc.LoginName = "TestUser";

    mc.Password = "Para1234";

    mc.DisplayedName = "TestUser";

    mc.Email = "[email protected]";

     

    svc.create(mc, 1083,

     

    "admin", "myPassword");

  • Søren Corneliussen 7 posts 28 karma points
    Jan 02, 2012 @ 21:23
    Søren Corneliussen
    0

    wow - inserting code does not look nice.

    BTW - Im using the newest Umbraco release 4.7.1 (and have added the webservices.dll to the bin directory and enabled webservices. That is working fine...)

  • Søren Corneliussen 7 posts 28 karma points
    Jan 02, 2012 @ 21:52
    Søren Corneliussen
    0

    found a fix http://detonatorb.wordpress.com/2009/11/11/hassling-the-umbraco-v4-0-2-1-member-webservice-to-import-members/#comment-15

    Needed to fix missing code in the umbraco core. How do we get this to main trunk?

  • Roman Mellenberger 14 posts 32 karma points
    Nov 27, 2012 @ 15:46
    Roman Mellenberger
    0

    Hi,

    I try to add a member in one or more member groups with no success. I'm using umbraco 4.7.0. Is there still an issue?

    Thanks

    Roman

    Code snippet:

          // Existing Group object
          memberGroup mg = new memberGroup();
          mg.GroupID = 1427;
          mg.GroupName = "Supergroup";

        // Property carrier
          memberProperty p1 = new memberProperty();
          p1.Key = "firstname";
          p1.PropertyValue = "Peterli";
     
          // Try to change properties on existing user
          mc = sc.readById(newid, Username, Password);
          mc.LoginName = "tfw";
          mc.Password = "123test";
          mc.Groups.Add(mg); // ToDo check wheter this is working!!!
          mc.Email = "[email protected]";
          mc.MemberProperties.Add(p1);

          sc.update(mc, Username, Password);
  • Roman Mellenberger 14 posts 32 karma points
    Nov 27, 2012 @ 17:07
    Roman Mellenberger
    0

    Juct checked the webservices of Umbraco 4.7 and changed the update functionality. Now it works perfect. I assume this is already fixed in later releases then the 4.7 because lots of membership methods are obsolete...

    Please ask for the code or library if you are interested.

     

    Best regards

    Roman

Please Sign in or register to post replies

Write your reply to:

Draft