You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-LogMessage-API 'Standards'-tenant $Tenant-message "Failed to set companionAppAllowedState to $state. Error: $($ErrorMessage.NormalizedError)"-sev Error -LogData $ErrorMessage
73
+
Write-LogMessage-API 'Standards'-tenant $Tenant-message "Failed to set companionAppAllowedState to $WantedState. Error: $($ErrorMessage.NormalizedError)"-sev Error -LogData $ErrorMessage
75
74
}
76
75
}
77
76
}
78
77
79
78
if ($Settings.alert-eq$true) {
80
79
81
-
if ($authState) {
82
-
Write-LogMessage-API 'Standards'-tenant $Tenant-message 'companionAppAllowedState is enabled.'-sev Info
80
+
if ($AuthStateCorrect-eq$true) {
81
+
Write-LogMessage-API 'Standards'-tenant $Tenant-message "companionAppAllowedState is set to $WantedState."-sev Info
83
82
} else {
84
-
Write-StandardsAlert-message 'companionAppAllowedState is not enabled'-object $authenticatorFeaturesState-tenant $Tenant-standardName 'PWcompanionAppAllowedState'-standardId $Settings.standardId
85
-
Write-LogMessage-API 'Standards'-tenant $Tenant-message 'companionAppAllowedState is not enabled.'-sev Info
83
+
Write-StandardsAlert-message "companionAppAllowedState is not set to $WantedState. Current state is $CurrentState."-object $AuthenticatorFeaturesState-tenant $Tenant-standardName 'PWcompanionAppAllowedState'-standardId $Settings.standardId
84
+
Write-LogMessage-API 'Standards'-tenant $Tenant-message "companionAppAllowedState is not set to $WantedState. Current state is $CurrentState."-sev Info
0 commit comments