mirror of
https://github.com/paradizelost/Powershell-Public.git
synced 2024-11-25 02:04:43 -06:00
Update teedy.ps1
This commit is contained in:
parent
d3a63b00bb
commit
0962da2eee
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user