Change vote and username requirements

This commit is contained in:
Ajay Ramachandran
2020-08-29 12:25:35 -04:00
parent 19363c86f9
commit 67951b39d9
2 changed files with 9 additions and 1 deletions

View File

@@ -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);