mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Block username change
This commit is contained in:
committed by
GitHub
parent
60a118f391
commit
72aff3a695
@@ -40,6 +40,12 @@ export async function setUsername(req: Request, res: Response) {
|
||||
userID = getHash(userID);
|
||||
}
|
||||
|
||||
if (userID === "7e7eb6c6dbbdba6a106a38e87eae29ed8689d0033cb629bb324a8dab615c5a97") {
|
||||
// Don't allow
|
||||
res.sendStatus(200);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
//check if username is already set
|
||||
let row = await db.prepare('get', `SELECT count(*) as count FROM "userNames" WHERE "userID" = ?`, [userID]);
|
||||
|
||||
Reference in New Issue
Block a user