Custom Module
Last Post 03/04/2015 7:02 AM by Drugs Abuse. 3 Replies.
Author Messages
Rodrigo
Nuke Newbie
Nuke Newbie
Posts:7


--
01/21/2015 5:45 PM
    Hello,
    I was wondering like to how can I access the default user's properties and the added properties in a custom module?
    Thanks
    Regards
    Rodrigo
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    01/21/2015 9:50 PM
    When you say "default user" do you mean the "logged in user"? If so, you can get the UserInfo object of the current (logged in) user. That's how, for example, the User skin object and other things work.

    For the User skin object (look in admin\Skins for user.ascx and user.ascx.cs) has this code:

    var userInfo = UserController.Instance.GetCurrentUserInfo();
    



    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Rodrigo
    Nuke Newbie
    Nuke Newbie
    Posts:7


    --
    01/22/2015 8:34 AM
    Defalt propertys line llast na me and address and the property that I add in profile.
    Tks
    Drugs Abuse
    Nuke Newbie
    Nuke Newbie
    Posts:1


    --
    03/04/2015 7:02 AM
    Thanks a lot


    ---