Skip to content

Commit

Permalink
fix: prettier issue
Browse files Browse the repository at this point in the history
  • Loading branch information
diced committed Mar 5, 2024
1 parent c8625c1 commit d3be545
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/api/auth/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ async function handler(req: NextApiReq, res: NextApiRes) {
if (!invite || invite?.used) return res.badRequest('Bad invite');
usedInvite = true;
} else return res.badRequest('Bad Username/Password');
} else if (config.features.invites && !user?.administrator)
return res.badRequest('Bad invite');
} else if (config.features.invites && !user?.administrator) return res.badRequest('Bad invite');

const hashed = await hashPassword(password);

Expand Down

0 comments on commit d3be545

Please sign in to comment.