Skip to content

Commit

Permalink
Added getReservedUsernames()
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviary2 committed Jul 16, 2024
1 parent b73d91f commit cf5ce74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/server/controllers/createaccountController.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ const profainWords = [
'poop'
];

function getReservedUsernames() {
return reservedUsernames;
}

// Called when create account form submitted
const createNewMember = async (req, res) => {
if (!req.body) {
Expand Down Expand Up @@ -260,5 +264,6 @@ module.exports = {
checkEmailAssociated,
checkUsernameAssociated,
generateID,
generateAccount
generateAccount,
getReservedUsernames
};

0 comments on commit cf5ce74

Please sign in to comment.