Skip to content

Commit

Permalink
Update Update-DuoUser.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Aug 30, 2024
1 parent e60dcc1 commit 754cfb8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions DuoSecurity/Public/Admin API/Users/Update-DuoUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ function Update-DuoUser {
$Params = @{}
if ($Aliases) {
$x = 1
$AliasList = foreach ($Alias in $Aliases) {
if ($x -gt 8) { break }
@{ "alias$x" = $Alias }
$AliasList = $Aliases | ForEach-Object {
'alias{0}={1}' -f $x, [System.Uri]::EscapeDataString($_)
$x++
}
$Params.aliases = $AliasList
$Params.aliases = $AliasList -join '&'
}

if ($Username) { $Params.username = $Username }
Expand Down

0 comments on commit 754cfb8

Please sign in to comment.