Skip to content

Commit

Permalink
Merge pull request #460 from m-hanisch/patch-1
Browse files Browse the repository at this point in the history
Update Test-MtEidscaPR05.ps1
  • Loading branch information
merill authored Sep 10, 2024
2 parents 061f148 + ccf062d commit b148e95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions powershell/internal/eidsca/Test-MtEidscaPR05.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#
.SYNOPSIS
Checks if Default Settings - Password Rule Settings - Smart Lockout - Lockout duration in seconds is set to '60'
Checks if Default Settings - Password Rule Settings - Smart Lockout - Lockout duration in seconds is greater or equal to '60'
.DESCRIPTION
Expand All @@ -25,7 +25,7 @@ function Test-MtEidscaPR05 {
$result = Invoke-MtGraphRequest -RelativeUri "settings" -ApiVersion beta

[string]$tenantValue = $result.values | where-object name -eq 'LockoutDurationInSeconds' | select-object -expand value
$testResult = $tenantValue -ge '60'
$testResult = [int]$tenantValue -ge [int]'60'
$tenantValueNotSet = $null -eq $tenantValue -and '60' -notlike '*$null*'

if($testResult){
Expand Down

0 comments on commit b148e95

Please sign in to comment.