mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-02-02 07:40:43 +03:00
Change vote and username requirements
This commit is contained in:
@@ -18,6 +18,12 @@ module.exports = function setUsername(req, res) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (userName.contains("discord")) {
|
||||
// Don't allow
|
||||
res.sendStatus(200);
|
||||
return;
|
||||
}
|
||||
|
||||
if (adminUserIDInput != undefined) {
|
||||
//this is the admin controlling the other users account, don't hash the controling account's ID
|
||||
adminUserIDInput = getHash(adminUserIDInput);
|
||||
|
||||
Reference in New Issue
Block a user