Skip to content

Commit

Permalink
Log-FailedLogin function accept empty string
Browse files Browse the repository at this point in the history
Fixed Log-FailedLogin function to accept empty string values for $UserID and $Message arguments.
  • Loading branch information
rgconrad514 authored Apr 23, 2018
1 parent 1669ab5 commit 13b8ecd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ function Log-FailedLogin
[string]
$IPAddress,
[parameter(position = 3, Mandatory=$true)]
[AllowEmptyString()]
[string]
$UserID,
[parameter(position = 4, Mandatory=$true)]
[AllowEmptyString()]
[string]
$Message
)
Expand Down Expand Up @@ -332,4 +334,4 @@ function On-FailedLogin
$Connection.Close()
$Connection.Dispose()
}
}
}

0 comments on commit 13b8ecd

Please sign in to comment.