Skip to content

Commit 4b7e00c

Browse files
committed
Update Invoke-ExecSendPush.ps1
1 parent c464bb1 commit 4b7e00c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecSendPush.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,16 @@ function Invoke-ExecSendPush {
104104

105105
if ($obj.BeginTwoWayAuthenticationResponse.result) {
106106
$Body = "Received an MFA confirmation: $($obj.BeginTwoWayAuthenticationResponse.result.value | Out-String)"
107-
$colour = 'success'
107+
$State = 'success'
108108
}
109109
if ($obj.BeginTwoWayAuthenticationResponse.AuthenticationResult -ne $true) {
110110
$Body = "Authentication Failed! Does the user have Push/Phone call MFA configured? ErrorCode: $($obj.BeginTwoWayAuthenticationResponse.result.value | Out-String)"
111-
$colour = 'error'
111+
$State = 'error'
112112
}
113113

114114
}
115115

116-
$Results = [pscustomobject]@{'Results' = $Body; severity = $colour }
116+
$Results = [pscustomobject]@{'Results' = @{ resultText = $Body; state = $State } }
117117
Write-LogMessage -headers $Request.Headers -API $APINAME -message "Sent push request to $UserEmail - Result: $($obj.BeginTwoWayAuthenticationResponse.result.value | Out-String)" -Sev 'Info'
118118

119119
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{

0 commit comments

Comments
 (0)