Copied to clipboard

Flag this post as spam?

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


  • aman 13 posts 123 karma points
    Feb 02, 2017 @ 09:04
    aman
    0

    Extend umbraco member

    Hi guys,

    I am developing web site on umbraco and need to store additional information about member(cmsMember). How can I do that? Is there a way to extend umbraco member without changing membership provider?

    I would like to do something similar to this

     var datatype = new DataTypeDefinition("varchar");
     var type = new PropertyType(datatype);
     var property = new Property(type);
     property.Value = myAdditionalInfo;
     member.Properties.Add(property);
     memberService.Save(member, false);
    

    I am getting more and more dissapointed with umbraco.

  • Eric Petersson 33 posts 117 karma points
    Feb 02, 2017 @ 12:12
    Eric Petersson
    0

    Hi, aman

    Yes, you may store extended properties for members in Umbraco. Head over to the Members area in the Umbraco back office.

    You may:

    • Define a new Member Type (such as super members)
    • Define extended properties for the member type in need (default type is Member in Umbraco)
  • aman 13 posts 123 karma points
    Feb 02, 2017 @ 12:33
    aman
    0

    Thanks for reply Eric!

    Yes I know about this option.

    What I need is to store in database password reset token. Therefore I cannot add this property to backoffice as it will compromise security. What I am trying to do is add data in some storage like AdditionalData. But this does not work for unknown reasons. Is it possible to store data in AdditionalData?

  • Eric Petersson 33 posts 117 karma points
    Feb 02, 2017 @ 12:47
    Eric Petersson
    0

    Perhaps building a custom property type for dealing with password protection with the input type="password"?

    Then by clicking a reset button it would end up calling one of your methods in the backend which handles the logics?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies