Compare commits
2 Commits
7f77ad39bf
...
4c1107979f
Author | SHA1 | Date | |
---|---|---|---|
4c1107979f | |||
ef0e47d7f5 |
@ -430,7 +430,7 @@ class auth:
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
def logout(self, params):
|
def logout(self, params):
|
||||||
APIADDR = "/logout"
|
APIADDR = "/api/auth/logout"
|
||||||
loggorilla.prcss(APIADDR, "Define parameters")
|
loggorilla.prcss(APIADDR, "Define parameters")
|
||||||
response = {}
|
response = {}
|
||||||
jwt = params["jwt" ]
|
jwt = params["jwt" ]
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
function sendHttpRequest(url, method, data, callback, contentType = "multipart/form-data") {
|
function sendHttpRequest(url, method, data, callback, contentType = "multipart/form-data", authorization = "") {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open(method, url, true);
|
xhr.open(method, url, true);
|
||||||
xhr.setRequestHeader("Content-Type", contentType);
|
xhr.setRequestHeader("Content-Type", contentType);
|
||||||
|
xhr.setRequestHeader("Authorization", authorization);
|
||||||
xhr.onreadystatechange = function () {
|
xhr.onreadystatechange = function () {
|
||||||
if (xhr.readyState === 4) {
|
if (xhr.readyState === 4) {
|
||||||
if (xhr.status === 200) {
|
if (xhr.status === 200) {
|
||||||
|
Loading…
Reference in New Issue
Block a user