mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-02-03 23:42:06 +01:00
cursed draft of PoW
This commit is contained in:
parent
df60190dc3
commit
0896d8f693
@ -261,6 +261,7 @@ function renderActions() {
|
|||||||
addAction("Listen to offline login in VIAaaS instance", () => {
|
addAction("Listen to offline login in VIAaaS instance", () => {
|
||||||
let user = prompt("Offline username (case-sensitive):", "");
|
let user = prompt("Offline username (case-sensitive):", "");
|
||||||
if (!user) return;
|
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}));
|
socket.send(JSON.stringify({action: "offline_login", username: user}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user