ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
35 stars 3 forks source link

PSU 3.7.0: Add "Change Password" Option #1879

Open donlent opened 1 year ago

donlent commented 1 year ago

Summary of the new feature / enhancement

Now that 3.7.0 includes the possibility to add local user accounts (THANK YOU FOR THAT!! 🙏🤗) it should also be pssible to allow the user to change his password. As of now, when a user clicks on the Username on the top right only this (as always) gets displayed: image

We should have a similar possibility like on the admin page: image

Btw if you don't mind also implementing the possibility to also display Icons there and add other custom commands, that would be AWSOME!! 😀

Kind regards, Don

Proposed technical implementation details (optional)

No response

adamdriscoll commented 1 year ago

Change password won't be available in 3.7 but you will be able to add your own items.

image
New-UDDashboard -Title 'PowerShell Universal' -NavigationLayout permanent -Navigation $Navigation -Pages $Pages -Menu {
    New-UDMenuItem -Text 'Profile' -Icon (New-UDIcon -Icon 'User') 
    New-UDMenuItem -Text 'Change Password' -Icon (New-UDIcon -Icon 'Lock') -OnClick {
        Show-UDToast "Coming soon!"
    }
}
donlent commented 1 year ago

Hey Adam OK cool thanks a lot for taking care of this hopefuly in one of your next releases. ...I already see that question coming, which obiously makes totally sense cause people want that passwords are personal and not administratively managed... 😊

donlent commented 1 year ago

Another important aspect while including the password reset / change form. It should be able to leverage translations, otherwise the text will be static EN which is not always the best choice for the users in multi language environments... :-) image

Please also consider to add password complexity rules. this could be achieved with RegEx for example if it makes it more simple or an array of allowed characters and a -minPWLength and -maxPWLength

donlent commented 1 year ago

Dear @adamdriscoll Any chance that this could make it into 3.8? Also just the possibility to trigger it on CLI Level from within

    New-UDMenuItem -Text 'Change Password' -Icon (New-UDIcon -Icon 'Lock') -OnClick {
        Show-UDToast "Coming soon!"
    } 

Would be very helpful.. Like that we could take care of the UI items / Reset Form and it would be less work for you. But as always however you think it might be best for the product. :-)