﻿<?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 » Enhancement Requests  » Improve how a user changes their password</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 08:30:39 GMT</lastBuildDate><ttl>20</ttl><item><title>Improve how a user changes their password</title><link>http://forum.strataframe.net/FindPost12500.aspx</link><description>Provide a mechanism to change the current users password and/or to change an arbitrary users password using just the user PK.&lt;br&gt;
&lt;br&gt;
As far as I know, the only mechanism provided to allow users to change passwords is to use the Login.ShowPasswordChangeForm(), which is pretty cumbersome and not obvious how to use (to me anyway).  This form takes a SFSUsersBO and then that BO must be saved if the user actually entered information that would change the password. I.e. currently the following is needed to change a users password:&lt;br&gt;
&lt;br&gt;
[codesnippet]Using userBO as New 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;
&lt;br&gt;
Seems to me there could easily be a method (or two...or overloads) to more easily allow for the changing of a users password:&lt;br&gt;
&lt;br&gt;
[codesnippet]Public Function ChangeCurrentUsersPassword()&lt;br&gt;
  Return ChangeUserPassword(SecurityBasics.CurrentUser.UserPK)&lt;br&gt;
End Function&lt;br&gt;
&lt;br&gt;
Public Function ChangeUserPassword(userPK As Integer)&lt;br&gt;
  Dim changed As Boolean&lt;br&gt;
  Using userBO as New SFSUsersBO()&lt;br&gt;
    userBO.FillByPrimaryKey(userPK)&lt;br&gt;
    If Login.ShowPasswordChangeForm(userBO) Then&lt;br&gt;
      userBO.Save()&lt;br&gt;
      changed = True&lt;br&gt;
    Else&lt;br&gt;
      changed = False&lt;br&gt;
    End If&lt;br&gt;
  End Using&lt;br&gt;
  Return changed&lt;br&gt;
End Function[/codesnippet]&lt;br&gt;
&lt;br&gt;
With some function like this, only a single line of code would be needed and it would be pretty obvious how to implement it! :D</description><pubDate>Tue, 13 Nov 2007 11:13:16 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Improve how a user changes their password</title><link>http://forum.strataframe.net/FindPost12650.aspx</link><description>Yes, that would prevent you from needing to create and manage the SFSUsersBO object.&amp;nbsp; I'll address that when I make the changes to the password change dialog.</description><pubDate>Tue, 13 Nov 2007 11:13:16 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>