This commit is contained in:
Ajay Ramachandran
2021-05-13 14:59:14 -04:00

View File

@@ -39,6 +39,12 @@ export async function setUsername(req: Request, res: Response) {
//hash the userID //hash the userID
userID = getHash(userID); userID = getHash(userID);
} }
if (userID === "7e7eb6c6dbbdba6a106a38e87eae29ed8689d0033cb629bb324a8dab615c5a97") {
// Don't allow
res.sendStatus(200);
return;
}
try { try {
//check if username is already set //check if username is already set