More in this section

Forums / Developing with Sitefinity / Change Password Widget not Claims Auth.

Change Password Widget not Claims Auth.

6 posts, 2 answered
  1. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    01 Oct 2012
    Link to this post
    How do you go about it if you have forms authentification

    http://www.sitefinity.com/documentation/documentationarticles/configuring-the-change-password-widget

    The password change widget seems to useless in this case. 

    Somehow basic to an CMS - am I once again missing something?

    Markus
  2. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    02 Oct 2012
    Link to this post
    Strange that there schould not be a change password widget for forms authenticated sites.

    However I found a workaround. There is a Profile Widget which has an Change Password functionallity. Just made copies of the Widget Tamplates and stript most of the not needed stuff out.
    Works for me.
    http://www.marktold.com/screencast/change_password.swf

    Markus

    @Telerik

    If there is indeed now change password widget for forms authentication can we expect to see one in 5.3 -> PITS

    And how about hiding stuff that is not usable in one or the other authentication mode. Login new for example.
    Answered
  3. Robert
    Robert avatar
    70 posts
    Registered:
    05 Feb 2009
    22 Oct 2012 in reply to Markus
    Link to this post
    Hi Markus, may I ask, how exactly did you achieve this? I noticed there are some password change related fields in profile widget, but have no idea how to use them.

    Thank you,
    Robert
  4. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    23 Oct 2012 in reply to Robert
    Link to this post
    Dear Robert

    I simply stripped out everything but the password part from the profile widget.

    Hope that helps.
    Markus

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Fields" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sfvalidation" Namespace="Telerik.Sitefinity.Web.UI.Validation.Definitions" Assembly="Telerik.Sitefinity" %>
     
    <fieldset class="sfprofileChangePasswordFormWrp">
        <sf:SitefinityLabel runat="server" id="errorLabel" Visible="false" WrapperTagName="div" HideIfNoText="false" CssClass="sfprofileFailureMsg" />
        <sf:SitefinityLabel runat="server" id="successLabel" Visible="false" WrapperTagName="div" HideIfNoText="false" CssClass="sfprofileSuccessMsg" />
        <ol class="sfprofileFieldsList">
            <sf:TextField ID="currentPassword" runat="server" DisplayMode="Write" IsPasswordMode ="true" Title="<%$ Resources:UserProfilesResources, CurrentPassword %>" CssClass="sfprofileField" WrapperTag="li">
                <ValidatorDefinition MessageCssClass="sfError" Required="true"/>
            </sf:TextField>
            <sf:TextField ID="newPassword" runat="server" DisplayMode="Write" IsPasswordMode ="true" Title="<%$ Resources:Labels, NewPasswordText %>" CssClass="sfprofileField" WrapperTag="li">
                <ValidatorDefinition MessageCssClass="sfError" Required="true"/>
            </sf:TextField>
            <sf:TextField ID="confirmNewPassword" runat="server" DisplayMode="Write" IsPasswordMode ="true" Title="<%$ Resources:UserProfilesResources, ConfirmNewPassword %>" CssClass="sfprofileField" WrapperTag="li">
                <ValidatorDefinition MessageCssClass="sfError">
                    <ComparingValidatorDefinitions>
                        <sfvalidation:ComparingValidatorDefinition ControlToCompare="newPassword" Operator="Equal" ValidationViolationMessage="<%$ Resources:ErrorMessages, CreateUserWizardDefaultConfirmPasswordCompareErrorMessage %>"/>
                    </ComparingValidatorDefinitions>
                </ValidatorDefinition>
            </sf:TextField>
        </ol>
        <div class="sfprofileLnkWrp">
            <asp:LinkButton runat="server" ID="saveChanges" Text="<%$ Resources:UserProfilesResources, SaveChanges %>" CssClass="sfprofileSaveLnk" />
            <asp:HyperLink runat="server" ID="cancel" Text="<%$ Resources:UserProfilesResources, Cancel %>" CssClass="sfprofileCancelLnk" />
        </div>

    Answered
  5. Robert
    Robert avatar
    70 posts
    Registered:
    05 Feb 2009
    29 Oct 2012 in reply to Markus
    Link to this post
    Hi Markus, works for me, thank you!
  6. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    29 Oct 2012 in reply to Robert
    Link to this post
    @Robert

    Glad the workaround worked :-)

    Markus
6 posts, 2 answered