Skip to content
Snippets Groups Projects
Commit c76b4c32 authored by Anton's avatar Anton
Browse files

lab 4 done

parent 53ce20ef
No related branches found
No related tags found
No related merge requests found
window.onload = function () {
displayView();
displayView();git
};
displayView = function () {
......@@ -456,7 +456,6 @@ function xmlRequest(url, callback, params, token = null, requestType) {
if (token) {
let hashed_params = hash_params(params, token);
console.log("REQUEST", hashed_params)
xhttp.setRequestHeader("Authorization", hashed_params);
}
......@@ -493,7 +492,6 @@ function connectWebSocket() {
let email = localStorage.getItem("email");
let token = localStorage.getItem("token");
hashed_email = CryptoJS.SHA512(email + token).toString(CryptoJS.enc.Hex);;
console.log("hashed_email", hashed_email)
let userData = { email: email, hashed_email: hashed_email};
ws.send(JSON.stringify(userData));
console.log("Web socket opened");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment