+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity SDK / How do I retrieve a user's email in SF 4.1?

How do I retrieve a user's email in SF 4.1?

4 posts, 0 answered
  1. Jim
    Jim avatar
    22 posts
    Registered:
    09 Sep 2010
    10 May 2011
    Link to this post
    Hello,

    I am trying to retrieve a user's email address in SF 4.1 and am having some problems.  I used the code below in SF 4.0 and it worked fine, but now I get a squiggly under the 'user.Email' with this Warning:

    'Public Overrides Property Email As String' is obsolete: 'This is now persisted as part of the user profile.'.

    Can someone tell me how to correct the issue?

    Dim userMan = UserManager.GetManager()
    Dim user = userMan.GetUser(SecurityManager.GetCurrentUserName)
    email.Text = user.Email

    Thanks,
    Jim

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 May 2011
    Link to this post
    Hello Jim,

    The obsolete attribute will be removed for the next internal build. This is a bug - we forgot to remove the attribute when we implemented the new profiles with Sitefinity 4.1


    All the best,
    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. Jim
    Jim avatar
    22 posts
    Registered:
    09 Sep 2010
    12 May 2011
    Link to this post
    @Ivan

    I updated a support ticket (ticket #422924) regarding users and profiles.  Can you please take a look and help me out?  The code that I have that worked in 4.0 is not functioning any longer in 4.1

    Thanks,
    Jim
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 May 2011
    Link to this post
    Hello Jim,

    I updated your request.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

4 posts, 0 answered