﻿<?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?)  » Change user passsword</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 13 May 2026 02:02:02 GMT</lastBuildDate><ttl>20</ttl><item><title>Change user passsword</title><link>http://forum.strataframe.net/FindPost18841.aspx</link><description>Hi&lt;br&gt;
&lt;br&gt;
I will checking how to let users to change their passwords.&lt;br&gt;
&lt;br&gt;
I have this:&lt;br&gt;
&lt;br&gt;
[codesnippet]        Using userBO As New MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO()&lt;br&gt;
            userBO.FillByPrimaryKey(SecurityBasics.CurrentUser.UserPK)&lt;br&gt;
            If Login.ShowPasswordChangeForm(userBO) Then&lt;br&gt;
                userBO.Save()&lt;br&gt;
            End If&lt;br&gt;
        End Using[/codesnippet]&lt;br&gt;
But is not working.&lt;br&gt;
&lt;br&gt;
Does any one have a functional sample of how to this.&lt;br&gt;
&lt;br&gt;
Regards</description><pubDate>Thu, 15 Jan 2009 21:09:48 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost21555.aspx</link><description>Philipp, I have the following code in my form's base class:&lt;P&gt;[codesnippet][code]&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ShowSecurityDialog()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; showPermissionFlag &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Boolean&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;False&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; showRestrictionSetsFlag &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Boolean&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;False&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; SecurityBasics.CurrentUser.IsAdministrator &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;showPermissionFlag = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;showRestrictionSetsFlag = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;'-- Create the form and show it&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; loDialog &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; SecurityDialog(showPermissionFlag, showRestrictionSetsFlag)&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;loDialog.ViewSecurityKey = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"UsersForm"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;loDialog.ShowDialog()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Using&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;[/code][/codesnippet]</description><pubDate>Thu, 15 Jan 2009 21:09:48 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost21554.aspx</link><description>[quote]So we are allowed to ship the security editor with our applications ?[/quote]&lt;/P&gt;&lt;P&gt;Absolutely.&amp;nbsp; Otherwise how are your end-users going to be able to create their users and assign permissions?&amp;nbsp; This is the SecurityDialog class in the Security assembly.&amp;nbsp; Just create a refefence and call SHowDialog and then it is ready for use within your app.</description><pubDate>Thu, 15 Jan 2009 20:56:33 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost21553.aspx</link><description>[quote]Is it fully localized ?[/quote]&lt;/P&gt;&lt;P&gt;Yep.</description><pubDate>Thu, 15 Jan 2009 17:14:57 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost21551.aspx</link><description>[quote][b]Trent L. Taylor (01/15/2009)[/b]Now if they are changing a password through the security editor,... [/quote]&lt;/P&gt;&lt;P&gt;So we are allowed to ship the security editor with our applications ? I didnt know that. Is it fully localized ?&lt;/P&gt;&lt;P&gt;-Sorry for thead-hijack. :P</description><pubDate>Thu, 15 Jan 2009 16:51:54 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost21538.aspx</link><description>You can't exit right now anyway.&amp;nbsp; It will just pop the dialog back up.&amp;nbsp; This is a forced process anyway.&amp;nbsp; Now if they are changing a password through the security editor, then you can cancel, but this is in reference to when the "User must change password next login" flag.&amp;nbsp; When they login they &lt;STRONG&gt;&lt;U&gt;&lt;EM&gt;must&amp;nbsp;&lt;/EM&gt;&lt;/U&gt;&lt;/STRONG&gt; change their password.&amp;nbsp; This has always been enforced this way, but we are now going to make it less confusing so they know that they can't click the cancel button and expect to exit.</description><pubDate>Thu, 15 Jan 2009 15:28:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost21536.aspx</link><description>On point number two. This means that they have no choice but to change their password?  What if they decide to bail and just want to exit? (They don't understand what is happening and want to talk to somebody first). I'd think that maybe the cancel button becomes an Exit button in that case and shuts down the app (if that's possible).</description><pubDate>Thu, 15 Jan 2009 13:37:49 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost21535.aspx</link><description>Three problems all related to this dialog have been addressed and will be available in the next beta release posted.&amp;nbsp; Here are the items that have been resolved:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The password will not show all of the broken rules eliminating the confusion of the OK being clicked and nothing happening.&lt;/LI&gt;&lt;LI&gt;The cancel button is no longer accessible when the end-user is being forced to change their password&lt;/LI&gt;&lt;LI&gt;The title now shows the proper localization keys and renders properly.&lt;/LI&gt;&lt;/UL&gt;</description><pubDate>Thu, 15 Jan 2009 13:34:51 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost21527.aspx</link><description>I just logged in to see if this is an issue.&amp;nbsp; I am have the same problem attempting to change password within my application.</description><pubDate>Thu, 15 Jan 2009 08:39:39 GMT</pubDate><dc:creator>Douglas Riley</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost21510.aspx</link><description>Has this been fixed?&lt;/P&gt;&lt;P&gt;Because, I have the same problem with the change password dialog.&lt;/P&gt;&lt;P&gt;I'm using the same code as Edhy and Greg and have not set complex passwords.&lt;/P&gt;&lt;P&gt;But the user can not change the password and the only option is to cancel out of the form.&lt;/P&gt;&lt;P&gt;There is also an issue with the gradient form header on the form - the detail text is not totally visible (see attached).&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/2d7eaf71-61a9-4c5b-a91f-97a9.png"&gt;&lt;/P&gt;&lt;P&gt;/Teddy</description><pubDate>Wed, 14 Jan 2009 08:06:24 GMT</pubDate><dc:creator>Teddy Jensen</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost19597.aspx</link><description>[quote][b]Greg McGuffey (08/29/2008)[/b][hr]I am having a similar problem and just did a little sample app. It looks like the issue might be related to the password change failing. When I turn off complex passwords, I have no problems. However, when they are turned on and I provide a password that I know won't work (like one that includes the user's name), then when I click on OK, it just sits there, does nothing.[/quote] &lt;P&gt;I am having the same situation as Greg, but in all cases, not matter the setting for Complex Passwords, when clicking the OK button, nothing happens, so the only option is to Cancel out the Change Password form.&lt;/P&gt;&lt;P&gt;This is the code I am using to change the password:&lt;/P&gt;&lt;P&gt;[codesnippet][code]&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Using&lt;/FONT&gt;&lt;FONT size=2&gt; userBO &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; SFSUsersBO()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userBO.FillByPrimaryKey(SecurityBasics.CurrentUser.UserPK)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; Login.ShowPasswordChangeForm(userBO) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userBO.Save()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Using&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;[/code][/codesnippet] &lt;P&gt;Can anybody please confirm this situation, I am running latest version 1.6.6. &lt;P&gt;Thanks!</description><pubDate>Mon, 22 Sep 2008 15:18:05 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost18853.aspx</link><description>Greg&lt;br&gt;
&lt;br&gt;
[quote]It looks like the issue might be related to the password change failing.  When I turn off complex passwords, I have no problems. However, when they are turned on and I provide a password that I know won't work (like one that includes the user's name), then when I click on OK, it just sits there, does nothing.[/quote]&lt;br&gt;
&lt;br&gt;
I have not noticed that, I do the same (turn off complex passwords) and works, I think the problem is not in my code.&lt;br&gt;
&lt;br&gt;
An small detail, I use spanish, so my application has localization, must things work but in the Change password dialog there is a small problem, I add an screenshot with the text that is not localized and the translation, hope SF could add this in next update.&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;</description><pubDate>Sat, 30 Aug 2008 00:52:12 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Change user passsword</title><link>http://forum.strataframe.net/FindPost18851.aspx</link><description>I am having a similar problem and just did a little sample app.  It looks like the issue might be related to the password change failing.  When I turn off complex passwords, I have no problems. However, when they are turned on and I provide a password that I know won't work (like one that includes the user's name), then when I click on OK, it just sits there, does nothing.</description><pubDate>Fri, 29 Aug 2008 14:08:37 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>