Change Password Widget not Claims Auth.

Posted by Community Admin on 04-Aug-2018 14:59

Change Password Widget not Claims Auth.

All Replies

Posted by Community Admin on 01-Oct-2012 00:00

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

Posted by Community Admin on 02-Oct-2012 00:00

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.

Posted by Community Admin on 22-Oct-2012 00:00

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

Posted by Community Admin on 23-Oct-2012 00:00

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>

Posted by Community Admin on 29-Oct-2012 00:00

Hi Markus, works for me, thank you!

Posted by Community Admin on 29-Oct-2012 00:00

@Robert

Glad the workaround worked :-)

Markus

This thread is closed