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

Forums / General Discussions / Control to update username, email, password

Control to update username, email, password

17 posts, 0 answered
  1. Dave
    Dave avatar
    76 posts
    Registered:
    10 Mar 2008
    13 May 2008
    Link to this post
    Is there a control already developed to allow a user to update their name, email, password, etc.?  I see the ManageProfile control, but it seems to only show the profile properties, not the inherent properties of a membership.  Thanks!
  2. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    14 May 2008
    Link to this post
    Hi Dave,

    Unfortunately, we don't have a control for this functionality at the moment. However, it wouldn't be hard to implement. What you should bear in mind is that some of the user data you would like to change also depends on the setting of the provider. So for example, password can be changed only if you allow password retrival on your membership provider and if you don't encrypt the passwords.

    To change this information, you need to get a reference of a current user (MembershipUser type) and then you can set any of the properties you see fit. Finally, you need to call Membership.UpdateUser(MembershipUser user) and pass it the object to which you have made changes.

    We are using standard ASP.NET membership and there is a plenty of information on that topic. So all the tips and controls that you can find on ASP.NET membership will work with Sitefinity as well.

    I hope you'll find this information helpful. Let us know if we can assist you with anything else.

    Kind regards,

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Shaun Peet
    Shaun Peet avatar
    12 posts
    Registered:
    31 Aug 2004
    16 May 2008
    Link to this post
    Just a side note on this...the built-in membership provider for asp.net 2.0+ does not allow for the changing of usernames built-in.  It is possible, hoever, to manually construct a SQL update script directly against the database - you just need to be very careful about it.
  4. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    16 May 2008
    Link to this post
    yes and also i believe that the lowered username is what's used to login so be sure and use the .ToLower() method before you update the username
  5. Dave
    Dave avatar
    76 posts
    Registered:
    10 Mar 2008
    16 May 2008
    Link to this post
    Good to know - thanks fellas!
  6. Shaun Peet
    Shaun Peet avatar
    12 posts
    Registered:
    31 Aug 2004
    18 May 2008
    Link to this post
    I actually have the script for doing this done somewhere.  If you need it let me know and I'll post it next week.
  7. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    04 Mar 2009
    Link to this post
    Hi Shaun

    Any chance i could grab a copy of this code please?

    thanks
  8. Kevin Pipher
    Kevin Pipher avatar
    91 posts
    Registered:
    30 Nov 2005
    04 Mar 2009
    Link to this post
    Hi,

    As a side note to this discussion, it would be very useful to offer CMS users a forgot-your-password mechanism so they can reset it themselves. Our #1 call to our internal helpdesk is forgotten passwords.

    This seems like a feature which should really be baked into the CMS, and not a requirement that clients build their own.

    Would love to see it included in a future release.
  9. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    04 Mar 2009
    Link to this post
    I'm sure i've seen a ForgottenPassword user control in the solution

    i agree though, would be great to get this feature in the service pack release for 3.6

    Is this possible?
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    06 Mar 2009
    Link to this post
    Hello Kevin Pipher,

    There is a simple PasswordRecovery control that con be found at ~/Sitefinity/UserControls/Login/PasswordRecoveryControl.ascx

    You can register it in your web config as below:

    <add name="PasswordRecovery" section="Login" url="~/Sitefinity/UserControls/Login/PasswordRecoveryControl.ascx" /> 

    As you know we are using ASP.NET membership provider so you can implement your own control( using Membership.UpdateUser method), that will be more user friendly and will allow users to update their data. Most probably another controls and modules will be implemented from Sitefinity 4.0

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  11. Kevin Pipher
    Kevin Pipher avatar
    91 posts
    Registered:
    30 Nov 2005
    09 Mar 2009
    Link to this post
    Thanks Ivan, I obviously missed that control. This will be helpful.

    Kevin.
  12. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    09 Mar 2009
    Link to this post
    Hi Kevin Pipher,

    Let us know if there is anything else that we can do for you.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  13. Laura
    Laura avatar
    311 posts
    Registered:
    25 Feb 2008
    20 Nov 2009
    Link to this post
    How do you change the text that is on the e-mail send with the temporary password?
    Thank you,
  14. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    20 Nov 2009
    Link to this post
    Hi Laura,

    You can use PasswordRecovery.MailDefinition Property. You can find more detailed information about PasswordRecovery control at MSDN.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  15. Laura
    Laura avatar
    311 posts
    Registered:
    25 Feb 2008
    20 Nov 2009
    Link to this post
    Thank you Ivan for the always quick response! :)
  16. Juan
    Juan  avatar
    2 posts
    Registered:
    23 Jun 2010
    14 Jul 2010
    Link to this post
    Hello Ivan,

    In what section of the WebConfig should this code be placed?

    <add name="PasswordRecovery" section="Login" url="~/Sitefinity/UserControls/Login/PasswordRecoveryControl.ascx" /> 
  17. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    14 Jul 2010
    Link to this post
    Hi Juan Baptista,

    The section is <toolboxControls>
          

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
17 posts, 0 answered