﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » User Authentication</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 22:15:51 GMT</lastBuildDate><ttl>20</ttl><item><title>User Authentication</title><link>http://forum.strataframe.net/FindPost4199.aspx</link><description>Steps to recreate:&lt;/P&gt;&lt;P&gt;1. Added a new user and set them up so that the new user had to change their password upon initial logon.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Logged on as new user, providing correct user ID and passord and received a Security Event ID: 1011 that stated "You must change your password before you can logon to the application" ... so far so good.&amp;nbsp; Upon pressing OK ...&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;I receive the Change Password form.&amp;nbsp; Upon reentering the Old Password and then providing a new password I get the following error message: "The new password cannot be confirmed, please try again.&amp;nbsp; You must wait two days between password changes".&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Trying to cancel out of the dialog does not close the dialog ... I have to stop debugging in order to cancel out.&lt;/P&gt;&lt;P&gt;My question is this:&amp;nbsp; Should the initial password change dialog enforce the "Minimum time between password changes" Password Restriction?&amp;nbsp; I'm thinking ... probaby not.&lt;/P&gt;&lt;P&gt;Thanks guys,&lt;/P&gt;&lt;P&gt;CT</description><pubDate>Thu, 16 Nov 2006 14:27:24 GMT</pubDate><dc:creator>Charles Thomas Blankenship</dc:creator></item><item><title>RE: User Authentication</title><link>http://forum.strataframe.net/FindPost4563.aspx</link><description>OK, you need to change the UsersBO.vb file within the MicroFour StrataFrame Security.sln solution.&amp;nbsp; There is a method within the UsersBO.vb file called VerifyMinPasswordAge() that is causing all of your frustrations.&amp;nbsp; It needs to be changed to this:&lt;/P&gt;&lt;P&gt;Private Sub VerifyMinPasswordAge(ByVal Preferences As SFSPreferencesBO)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Bail if the password has not changed&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Me.PasswordIsChanged() Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Bail if the user is configured to "must change password at next login"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Me.us_UserMustChangePwNextLogin Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Verify password minimum age&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Me.CurrentRow.HasVersion(DataRowVersion.Original) Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim loTemp As EncryptedData = Me._Data&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim lcMsg As String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If DateTime.Now.Subtract(loTemp.PasswordCreatedOn) &amp;lt; New TimeSpan(Preferences.sp_PwMinAge) Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lcMsg = String.Format(RetrieveTextValue("SFST_MustWaitBeforePasswordChange"), Data.Formatting.TimeSpanToString(New TimeSpan(Preferences.sp_PwMinAge)))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.AddBrokenRule("us_PasswordPlainText", lcMsg)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;The thing we changed is the second if test to exit if the user has the UserMustChangePwNextLogin flag set.&amp;nbsp; So, it won't add a broken rule for the password age if the user is being forced to change their password.</description><pubDate>Thu, 16 Nov 2006 14:27:24 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: User Authentication</title><link>http://forum.strataframe.net/FindPost4552.aspx</link><description>What did you and the group come up with.&amp;nbsp; It should be a bit easier to fix since the must change password on next login is a flag not a count.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the use case scenario:&lt;/P&gt;&lt;P&gt;Administrator creates a user and sets them up so that they must change their password on the next login and that they cannot change their password more than once in a 48 hour period.&amp;nbsp; The&amp;nbsp;next&amp;nbsp;time the new&amp;nbsp;user logs in the program should ignore the&amp;nbsp;requirement for the 48 hour waiting period for password changes.&lt;/P&gt;&lt;P&gt;If this doesn't get changed the following scenario can develop:&amp;nbsp; User changes their password (an established user) and on that very same day the administrator says they must change their password (let's assume the reason is that the passwords were compromised on that day).&amp;nbsp; The user would not be able to use the system until&amp;nbsp;the 48 hour requirement had been met ... causing a security problem.&lt;/P&gt;&lt;P&gt;Thanks guys,&lt;/P&gt;&lt;P&gt;CT</description><pubDate>Thu, 16 Nov 2006 11:48:21 GMT</pubDate><dc:creator>Charles Thomas Blankenship</dc:creator></item><item><title>RE: User Authentication</title><link>http://forum.strataframe.net/FindPost4221.aspx</link><description>Both conditions exist in your scenario, so the minimum password age is taking precedence.&amp;nbsp; We will talk about this...but this is how it remains for now until we sit down as a team and have a detailed conversation about this.</description><pubDate>Tue, 07 Nov 2006 13:57:49 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: User Authentication</title><link>http://forum.strataframe.net/FindPost4220.aspx</link><description>This means that if a user is set up by an Administrator and the Administrator checks the must change password on initial entry and the preferences are set to force a user to wait two days before a password change then new users cannot use the application&amp;nbsp;until two days have passed after their account is initially -set up.&lt;/P&gt;&lt;P&gt;I do not understand how you cannot know if it is the first login if the option is given to an administrator to force a user to change their password on an initial entry.&amp;nbsp; The two&amp;nbsp;situations cannot exist together logically.&amp;nbsp; The application must detect this somewhere because I get the change password dialog to popup upon initial login.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CT</description><pubDate>Tue, 07 Nov 2006 13:54:55 GMT</pubDate><dc:creator>Charles Thomas Blankenship</dc:creator></item><item><title>RE: User Authentication</title><link>http://forum.strataframe.net/FindPost4217.aspx</link><description>It appears that as of now this is how it is designed.&amp;nbsp; We do not know if this is your first entry or your 10th....so it will respect the password date change rules.&amp;nbsp; We will talk about this some more, but for now...this is how she works :D</description><pubDate>Tue, 07 Nov 2006 13:32:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: User Authentication</title><link>http://forum.strataframe.net/FindPost4201.aspx</link><description>We will take a look.</description><pubDate>Tue, 07 Nov 2006 10:55:24 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>