password policies Options
andles
Posted: Wednesday, April 23, 2008 9:11:42 AM
Rank: Newbie

Joined: 4/23/2008
Posts: 2
Is there a way to force content editors / users to change their passowrd. Also, to make sure they use strong passwords?
tim
Posted: Wednesday, April 23, 2008 1:56:10 PM

Rank: Addict

Joined: 2/19/2007
Posts: 741
Location: Belgium
Nope, not standard. You will have to modify the source to get this functionality. Or you could create a usercontrol and let them change their password on a different page.

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
sjors
Posted: Thursday, April 24, 2008 10:59:37 AM

Rank: Fanatic

Joined: 7/20/2006
Posts: 408
Location: Amsterdam
tim wrote:
Nope, not standard. You will have to modify the source to get this functionality. Or you could create a usercontrol and let them change their password on a different page.

Maybe an idea to check the Ajax Library, i think there is a default controll for this.

I mean this one: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/PasswordStrength/PasswordStrength.aspx
sjors
Posted: Thursday, April 24, 2008 2:32:09 PM

Rank: Fanatic

Joined: 7/20/2006
Posts: 408
Location: Amsterdam
Ok i had a not so busy day, so i did hack it in:

Steps:

1) Download the Ajax ControlToolkit : http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=11121
2) Open the Umbraco Project in Visual Studio
3) Add the AjaxControlToolkit.dll as reference in the Umbraco presentation Project.
4) Open the Controll: umbraco\presentation\umbraco\controls\passwordChanger.ascx
5) add component ajaxToolkit:PasswordStrength

My result was:


Code:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="passwordChanger.ascx.cs" Inherits="umbraco.controls.passwordChanger" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<a href="#" onclick="if (document.getElementById('umbPasswordChanger').style.display == '' || document.getElementById('umbPasswordChanger').style.display == 'none') {document.getElementById('umbPasswordChanger').style.display = 'block'; this.style.display = 'none';}">Change password</a><br />
<div id="umbPasswordChanger" style="display: none;">
<table>
    <tr>
        <th>New Password:</th>
        <td style="width: 359px">
            <asp:TextBox ID="passwordNew" TextMode="password" runat="server"></asp:TextBox>
            <ajaxToolkit:PasswordStrength ID="PS" runat="server"
                TargetControlID="passwordNew"
                DisplayPosition="RightSide"
                StrengthIndicatorType="Text"
                PreferredPasswordLength="10"
                PrefixText="Strength:"
                TextCssClass="TextIndicator_TextBox1"
                MinimumNumericCharacters="0"
                MinimumSymbolCharacters="0"
                RequiresUpperAndLowerCaseCharacters="false"
                TextStrengthDescriptions="Very Poor;Weak;Average;Strong;Excellent"
                CalculationWeightings="50;15;15;20" />            
        </td>
    </tr>
    <tr>
        <th>Confirm new Password:</th>
        <td style="width: 359px">
            <asp:TextBox ID="passwordNewConfirm" TextMode="password" runat="server"></asp:TextBox>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Passwords must match" ControlToValidate="passwordNew" ControlToCompare="passwordNewConfirm" Operator="Equal"></asp:CompareValidator>
        </td>
    </tr>
</table>
</div>


Result:

sjors
Posted: Friday, April 25, 2008 1:28:58 PM

Rank: Fanatic

Joined: 7/20/2006
Posts: 408
Location: Amsterdam
One small thing, i noticed that this peace of code is generating a scripmanager error on the Members page, will have a look at it soon.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.