mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Block username change
This commit is contained in:
committed by
GitHub
parent
60a118f391
commit
72aff3a695
@@ -39,6 +39,12 @@ export async function setUsername(req: Request, res: Response) {
|
||||
//hash the userID
|
||||
userID = getHash(userID);
|
||||
}
|
||||
|
||||
if (userID === "7e7eb6c6dbbdba6a106a38e87eae29ed8689d0033cb629bb324a8dab615c5a97") {
|
||||
// Don't allow
|
||||
res.sendStatus(200);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
//check if username is already set
|
||||
|
||||
Reference in New Issue
Block a user