mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
make privateIDUsername check more lenient #532
This commit is contained in:
parent
51d25cfc68
commit
b855eea349
1 changed files with 5 additions and 0 deletions
|
@ -33,9 +33,14 @@ export async function setUsername(req: Request, res: Response): Promise<Response
|
|||
userName = userName.replace(/[\u0000-\u001F\u007F-\u009F]/g, "");
|
||||
|
||||
// check privateID against publicID
|
||||
/*
|
||||
if (!await checkPrivateUsername(userName, userID)) {
|
||||
return res.sendStatus(400);
|
||||
}
|
||||
*/
|
||||
if (userName == userID) {
|
||||
return res.sendStatus(400);
|
||||
}
|
||||
|
||||
if (adminUserIDInput != undefined) {
|
||||
//this is the admin controlling the other users account, don't hash the controling account's ID
|
||||
|
|
Loading…
Reference in a new issue