Skip to content

Commit 79666ce

Browse files
authored
Update account.html
1 parent f57fd06 commit 79666ce

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/account.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@
100100
window.onload = async function () {
101101
try {
102102
if (localStorage.getItem('loggedIn') === 'true') {
103+
104+
// Ban check (example logic) - Tested sucessfully by MyScratchedAccount
105+
if (encodedUsername === 'PUT THE FIRST BANNED USERS CODING HUT WEBSITE API TOKEN HERE') {
106+
localStorage.removeItem('loggedIn');
107+
localStorage.removeItem('username');
108+
window.location.href = 'banscreen.html?reason=spam';
109+
return;
110+
}
111+
103112
const username = localStorage.getItem('username');
104113

105114
document.getElementById('authSection').style.display = 'none';
@@ -133,8 +142,8 @@
133142
const plainUsername = data.username;
134143
const encodedUsername = btoa(plainUsername);
135144

136-
// Ban check (example logic) - im temp banning myself for test
137-
if (encodedUsername === 'TXlTY3JhdGNoZWRBY2NvdW50') {
145+
// Ban check (example logic) - Tested sucessfully by MyScratchedAccount
146+
if (encodedUsername === 'PUT THE FIRST BANNED USERS CODING HUT WEBSITE API TOKEN HERE') {
138147
localStorage.removeItem('loggedIn');
139148
localStorage.removeItem('username');
140149
window.location.href = 'banscreen.html?reason=spam';

0 commit comments

Comments
 (0)