Change user passsword


Author
Message
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi



I will checking how to let users to change their passwords.



I have this:



Using userBO As New MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO()

userBO.FillByPrimaryKey(SecurityBasics.CurrentUser.UserPK)

If Login.ShowPasswordChangeForm(userBO) Then

userBO.Save()

End If

End Using


But is not working.



Does any one have a functional sample of how to this.



Regards

Smile Everything is possible, just keep trying...
Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
You can't exit right now anyway.  It will just pop the dialog back up.  This is a forced process anyway.  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.  When they login they must  change their password.  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.
Philipp Guntermann
Philipp Guntermann
StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)
Group: Forum Members
Posts: 141, Visits: 263
Trent L. Taylor (01/15/2009)Now if they are changing a password through the security editor,...

So we are allowed to ship the security editor with our applications ? I didnt know that. Is it fully localized ?

-Sorry for thead-hijack. Tongue

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Is it fully localized ?

Yep.

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
So we are allowed to ship the security editor with our applications ?

Absolutely.  Otherwise how are your end-users going to be able to create their users and assign permissions?  This is the SecurityDialog class in the Security assembly.  Just create a refefence and call SHowDialog and then it is ready for use within your app.

Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Philipp, I have the following code in my form's base class:

Private Sub ShowSecurityDialog()

     Dim showPermissionFlag As Boolean = False

     Dim showRestrictionSetsFlag As Boolean = False

     If SecurityBasics.CurrentUser.IsAdministrator Then

          showPermissionFlag = True

          showRestrictionSetsFlag = True

     End If

     '-- Create the form and show it

     Using loDialog As New SecurityDialog(showPermissionFlag, showRestrictionSetsFlag)

          loDialog.ViewSecurityKey = "UsersForm"

          loDialog.ShowDialog()

     End Using

End Sub



Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Juan Carlos Pazos - 17 Years Ago
Greg McGuffey - 17 Years Ago
Juan Carlos Pazos - 17 Years Ago
Edhy Rijo - 17 Years Ago
Teddy Jensen - 16 Years Ago
Douglas Riley - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Greg McGuffey - 16 Years Ago
Trent L. Taylor - 16 Years Ago
                         [quote][b]Trent L. Taylor (01/15/2009)[/b]Now if they are changing a...
Philipp Guntermann - 16 Years Ago
                             [quote]Is it fully localized ?[/quote] Yep.
Ivan George Borges - 16 Years Ago
                                 [quote]So we are allowed to ship the security editor with our...
Trent L. Taylor - 16 Years Ago
                             Philipp, I have the following code in my form's base class:...
Edhy Rijo - 16 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search