1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-25 20:59:36 +01:00

Fix docs ToC parsing issue

This commit is contained in:
binwiederhier 2023-05-19 09:25:25 -04:00
parent 57eabd3aa5
commit 4ad0fb1f57

View file

@ -2903,6 +2903,7 @@ Here's an example with a user `testuser` and password `fakepassword`:
```
=== "PowerShell 5 and earlier"
``` powershell
# With PowerShell 5 or earlier, we need to create the base64 username:password string ourselves
$CredentialString = "$($Credential.Username):$($Credential.GetNetworkCredential().Password)"
$EncodedCredential = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($CredentialString))