Copied to clipboard

Flag this post as spam?

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


  • Paul Burns 16 posts 88 karma points
    Feb 03, 2016 @ 21:11
    Paul Burns
    0

    Unable to get the customer LoginName to update

    Hi Rusty,

    I have an account section as part of my website where the user can update their personal details such as forename, surname and email. I am using the email as the login name. I am able to update the member email/login but I am not able to do it using the Merchello Customer API. The LoginName of the ICustomer interface appears to be read only. Have you any idea how I can update this please?

    My version of Merchello is 1.8.2 and Umbraco is 7.2.4.

    Thanks in advance!!

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Feb 03, 2016 @ 23:29
    Rusty Swayne
    2

    Hey Paul,

    This should be being updated via the event handler on the membershipservice here:

    https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Web/UmbracoApplicationEventHandler.cs#L425

    Is it not working for you?

  • Paul Burns 16 posts 88 karma points
    Feb 04, 2016 @ 00:06
    Paul Burns
    2

    Hey yes that works now when I use the ApplicationContext.Current.Services.MemberService. Before I was just using the older umbraco.cms.businesslogic.member which wouldn't have triggered the MemberServiceOnSaving event. Thanks alot. This saved me alot of hassle.

    Great product! Keep up the good work! :-)

Please Sign in or register to post replies

Write your reply to:

Draft