cursed draft of PoW

This commit is contained in:
creeper123123321 2021-04-22 21:11:40 -03:00 committed by GitHub
parent df60190dc3
commit 0896d8f693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,6 +261,7 @@ function renderActions() {
addAction("Listen to offline login in VIAaaS instance", () => {
let user = prompt("Offline username (case-sensitive):", "");
if (!user) return;
// todo: do { a = JSON.stringify({username: user, date: Date.now(), rand: Math.random()}) } while (!sha512(a).startsWith("00000")); console.log(a);
socket.send(JSON.stringify({action: "offline_login", username: user}));
});
}