Skip to content

Commit

Permalink
remove redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Aug 10, 2023
1 parent ecb1329 commit 2c3e689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function Invoke-CippWebhookProcessing {
#Custom cipp operations.
Write-Host "Processing $($data.operation)"
switch ($data.operation) {
{ "UserLoggedIn" -eq $data.operation -and $Country -notin $AllowedLocations -and $data.ResultStatus -eq "Success" } { $data.operation = "UserLoggedInFromUnknownLocation"; break }
{ "UserloggedIn" -eq $data.operation -and $data.UserType -eq 2 -and $data.ResultStatus -eq "Success" } { $data.operation = "AdminLoggedIn"; break }
{ "UserLoggedIn" -eq $data.operation -and $Country -notin $AllowedLocations -and $data.ResultStatus -eq "Success" -and $data.ExtendedProperties.resultstatusdetail -eq "Success" } { $data.operation = "UserLoggedInFromUnknownLocation"; break }
{ "UserloggedIn" -eq $data.operation -and $data.UserType -eq 2 -and $data.ResultStatus -eq "Success" -and $data.ExtendedProperties.resultstatusdetail -eq "Success" } { $data.operation = "AdminLoggedIn"; break }
default { break }
}

Expand Down

0 comments on commit 2c3e689

Please sign in to comment.