Skip to content

Commit

Permalink
Merge pull request #15 from KelvinTegelaar/master
Browse files Browse the repository at this point in the history
[pull] master from KelvinTegelaar:master
  • Loading branch information
pull[bot] authored Jan 20, 2024
2 parents 0bae04e + 094e41b commit fdfdac8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Function Invoke-AddStandardsDeploy {
$Settings | Add-Member -NotePropertyName 'v2.1' -NotePropertyValue $true -Force
if ($Settings.phishProtection.remediate) {
$URL = $request.headers.'x-ms-original-url'.split('/api') | Select-Object -First 1
write-host $URL
Write-Host $URL
$Settings.phishProtection = [pscustomobject]@{
remediate = $true
remediate = [bool]$Settings.phishProtection.remediate
URL = $URL
}
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ function Invoke-CIPPStandardPhishProtection {
New-GraphPostRequest -tenantid $tenant -Uri "https://graph.microsoft.com/beta/organization/$($TenantId.customerId)/branding/localizations/" -ContentType 'application/json' -asApp $true -Type POST -Body $defaultBrandingBody -AddedHeaders $AddedHeaders
}
if ($currentBody -like "*$CSS*") {
Write-Host 'Logon Screen Phising Protection system already active'
Write-Host 'Logon Screen Phishing Protection system already active'
Write-LogMessage -API 'Standards' -tenant $tenant -message 'Logon Screen Phishing Protection system already active' -sev Info
} else {
$currentBody = $currentBody + $CSS
Write-Host 'Creating Logon Screen Phising Protection System'
Write-Host 'Creating Logon Screen Phishing Protection System'
New-GraphPostRequest -tenantid $tenant -Uri "https://graph.microsoft.com/beta/organization/$($TenantId.customerId)/branding/localizations/0/customCSS" -ContentType 'text/css' -asApp $true -Type PUT -Body $CSS
Write-LogMessage -API 'Standards' -tenant $tenant -message 'Enabled Logon Screen Phishing Protection system' -sev Info
}
Expand All @@ -49,4 +49,4 @@ function Invoke-CIPPStandardPhishProtection {
if ($currentBody -like "*$CSS*") { $authstate = $true } else { $authstate = $false }
Add-CIPPBPAField -FieldName 'PhishProtection' -FieldValue [bool]$authstate -StoreAs bool -Tenant $tenant
}
}
}
2 changes: 1 addition & 1 deletion version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.0.0
5.0.2

0 comments on commit fdfdac8

Please sign in to comment.