Update teedy.ps1

This commit is contained in:
paradizelost 2020-12-15 02:01:54 -06:00 committed by GitHub
parent d3a63b00bb
commit 0962da2eee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ Invoke-RestMethod -uri "$siteurl/api/document" -Headers $headers -Method PUT -bo
Invoke-RestMethod -uri "$siteurl/api/document" -Headers $headers -Method PUT -form $doctocreate Invoke-RestMethod -uri "$siteurl/api/document" -Headers $headers -Method PUT -form $doctocreate
$logoutresponse = Invoke-webrequest -Uri "https://$siteurl/api/user/logout" -Headers $headers -Method POST $logoutresponse = Invoke-webrequest -Uri "$siteurl/api/user/logout" -Headers $headers -Method POST
if($logoutresponse.BaseResponse.StatusCode -eq 200){ if($logoutresponse.BaseResponse.StatusCode -eq 200){
write-host "logged out successfully" write-host "logged out successfully"
} }