Skip to content

Commit 8fffcc7

Browse files
committed
v1.4.2 release
## [1.4.2] - 2025-01-30 ### Fixed - Fix password parameter shown in plain text (Fix [#55](#55))
1 parent 37d88f7 commit 8fffcc7

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

AsBuiltReport.Core.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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'
@@ -28,7 +28,7 @@
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.'

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and 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))

Src/Public/New-AsBuiltReport.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)