Skip to content

Commit

Permalink
v1.4.2 release
Browse files Browse the repository at this point in the history
## [1.4.2] - 2025-01-30

### Fixed
- Fix password parameter shown in plain text (Fix [#55](#55))
  • Loading branch information
tpcarman committed Jan 30, 2025
1 parent 37d88f7 commit 8fffcc7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions AsBuiltReport.Core.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Version number of this module.

ModuleVersion = '1.4.1'
ModuleVersion = '1.4.2'

# Supported PSEditions
# CompatiblePSEditions = 'Desktop'
Expand All @@ -28,7 +28,7 @@
# CompanyName = ''

# Copyright statement for this module
Copyright = '(c) 2024 Tim Carman. All rights reserved.'
Copyright = '(c) 2025 Tim Carman. All rights reserved.'

# Description of the functionality provided by this module
Description = 'A PowerShell module which provides the core framework for generating As-Built documentation for many common datacentre systems.'
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.4.2] - 2025-01-30

### Fixed
- Fix password parameter shown in plain text (Fix [#55](https://github.com/AsBuiltReport/AsBuiltReport.Core/issues/55))

## [1.4.1] - 2024-12-02

### Changed
* Update GitHub release workflow to add post to Bluesky social platform
- Update GitHub release workflow to add post to Bluesky social platform

### Fixed
- Set `$OutputFolderPath` variable as Global variable (Fix [#53](https://github.com/AsBuiltReport/AsBuiltReport.Core/issues/53))
Expand Down
7 changes: 3 additions & 4 deletions Src/Public/New-AsBuiltReport.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function New-AsBuiltReport {
ParameterSetName = 'UsernameAndPassword'
)]
[ValidateNotNullOrEmpty()]
[String] $Password,
[SecureString] $Password,

[Parameter(
Position = 3,
Expand Down Expand Up @@ -244,10 +244,9 @@ function New-AsBuiltReport {

try {

# If Username and Password parameters used, convert specified Password to secure string and store in $Credential
# If Username and Password parameters used, store in $Credential object
if (($Username -and $Password)) {
$SecurePassword = ConvertTo-SecureString $Password -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ($Username, $SecurePassword)
$Credential = New-Object System.Management.Automation.PSCredential ($Username, $Password)
}

if (-not (Test-Path $OutputFolderPath)) {
Expand Down

0 comments on commit 8fffcc7

Please sign in to comment.