Skip to content

Commit 599b221

Browse files
authored
Merge branch 'KelvinTegelaar:master' into master
2 parents b795047 + 0632082 commit 599b221

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Modules/CIPPCore/Public/Entrypoints/Invoke-AddStandardsDeploy.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Function Invoke-AddStandardsDeploy {
2020
$Settings | Add-Member -NotePropertyName 'v2.1' -NotePropertyValue $true -Force
2121
if ($Settings.phishProtection.remediate) {
2222
$URL = $request.headers.'x-ms-original-url'.split('/api') | Select-Object -First 1
23-
write-host $URL
23+
Write-Host $URL
2424
$Settings.phishProtection = [pscustomobject]@{
25-
remediate = $true
25+
remediate = [bool]$Settings.phishProtection.remediate
2626
URL = $URL
2727
}
2828
}

Modules/CIPPCore/Public/Entrypoints/Invoke-PublicPhishingCheck.ps1

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardPhishProtection.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ function Invoke-CIPPStandardPhishProtection {
2525
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
2626
}
2727
if ($currentBody -like "*$CSS*") {
28-
Write-Host 'Logon Screen Phising Protection system already active'
28+
Write-Host 'Logon Screen Phishing Protection system already active'
2929
Write-LogMessage -API 'Standards' -tenant $tenant -message 'Logon Screen Phishing Protection system already active' -sev Info
3030
} else {
3131
$currentBody = $currentBody + $CSS
32-
Write-Host 'Creating Logon Screen Phising Protection System'
32+
Write-Host 'Creating Logon Screen Phishing Protection System'
3333
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
3434
Write-LogMessage -API 'Standards' -tenant $tenant -message 'Enabled Logon Screen Phishing Protection system' -sev Info
3535
}
@@ -49,4 +49,4 @@ function Invoke-CIPPStandardPhishProtection {
4949
if ($currentBody -like "*$CSS*") { $authstate = $true } else { $authstate = $false }
5050
Add-CIPPBPAField -FieldName 'PhishProtection' -FieldValue [bool]$authstate -StoreAs bool -Tenant $tenant
5151
}
52-
}
52+
}

version_latest.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.0
1+
5.0.1

0 commit comments

Comments
 (0)