Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… dev
  • Loading branch information
KelvinTegelaar committed Aug 21, 2024
2 parents a33c1f9 + 94d6955 commit c2b836a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ function Invoke-CIPPStandardNudgeMFA {
Return
}
# Input validation
if (($Settings.snoozeDurationInDays -lt 0 -or $Settings.snoozeDurationInDays -gt 15) -and ($Settings.remediate -eq $true -or $Settings.alert -eq $true)) {
[int]$snoozeDurationInDays = $Settings.snoozeDurationInDays
if (($snoozeDurationInDays -lt 0 -or $snoozeDurationInDays -gt 14) -and ($Settings.remediate -eq $true -or $Settings.alert -eq $true)) {
Write-LogMessage -API 'Standards' -tenant $tenant -message 'NudgeMFA: Invalid snoozeDurationInDays parameter set' -sev Error
Return
}
Expand Down

0 comments on commit c2b836a

Please sign in to comment.