Compare commits
No commits in common. "4c1107979fd6d089749485b82e61273bf43cca6b" and "7f77ad39bf3db80eec43ad947f07771ab7d9fdc3" have entirely different histories.
4c1107979f
...
7f77ad39bf
@ -430,7 +430,7 @@ class auth:
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
def logout(self, params):
|
def logout(self, params):
|
||||||
APIADDR = "/api/auth/logout"
|
APIADDR = "/logout"
|
||||||
loggorilla.prcss(APIADDR, "Define parameters")
|
loggorilla.prcss(APIADDR, "Define parameters")
|
||||||
response = {}
|
response = {}
|
||||||
jwt = params["jwt" ]
|
jwt = params["jwt" ]
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
function sendHttpRequest(url, method, data, callback, contentType = "multipart/form-data", authorization = "") {
|
function sendHttpRequest(url, method, data, callback, contentType = "multipart/form-data") {
|
||||||
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