File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1313
1414 # Version number of this module.
1515
16- ModuleVersion = ' 1.4.1 '
16+ ModuleVersion = ' 1.4.2 '
1717
1818 # Supported PSEditions
1919 # CompatiblePSEditions = 'Desktop'
2828 # CompanyName = ''
2929
3030 # Copyright statement for this module
31- Copyright = ' (c) 2024 Tim Carman. All rights reserved.'
31+ Copyright = ' (c) 2025 Tim Carman. All rights reserved.'
3232
3333 # Description of the functionality provided by this module
3434 Description = ' A PowerShell module which provides the core framework for generating As-Built documentation for many common datacentre systems.'
Original file line number Diff line number Diff line change @@ -5,10 +5,15 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 1.4.2] - 2025-01-30
9+
10+ ### Fixed
11+ - Fix password parameter shown in plain text (Fix [ #55 ] ( https://github.com/AsBuiltReport/AsBuiltReport.Core/issues/55 ) )
12+
813## [ 1.4.1] - 2024-12-02
914
1015### Changed
11- * Update GitHub release workflow to add post to Bluesky social platform
16+ - Update GitHub release workflow to add post to Bluesky social platform
1217
1318### Fixed
1419- Set ` $OutputFolderPath ` variable as Global variable (Fix [ #53 ] ( https://github.com/AsBuiltReport/AsBuiltReport.Core/issues/53 ) )
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ function New-AsBuiltReport {
145145 ParameterSetName = ' UsernameAndPassword'
146146 )]
147147 [ValidateNotNullOrEmpty ()]
148- [String ] $Password ,
148+ [SecureString ] $Password ,
149149
150150 [Parameter (
151151 Position = 3 ,
@@ -244,10 +244,9 @@ function New-AsBuiltReport {
244244
245245 try {
246246
247- # If Username and Password parameters used, convert specified Password to secure string and store in $Credential
247+ # If Username and Password parameters used, store in $Credential object
248248 if (($Username -and $Password )) {
249- $SecurePassword = ConvertTo-SecureString $Password - AsPlainText - Force
250- $Credential = New-Object System.Management.Automation.PSCredential ($Username , $SecurePassword )
249+ $Credential = New-Object System.Management.Automation.PSCredential ($Username , $Password )
251250 }
252251
253252 if (-not (Test-Path $OutputFolderPath )) {
You can’t perform that action at this time.
0 commit comments