Skip to content

Commit

Permalink
*hotfix voice* register? i hardly know er
Browse files Browse the repository at this point in the history
  • Loading branch information
uakci committed Dec 17, 2024
1 parent 24d3d6b commit 487104e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ actions.register = guard(
pass: checks.limit(128),
},
(ret, i) => {
return ret(flip('registrations are temporarily disabled'));
if (store.pass.hashes[i.name]) return ret(flip('already registered'));
store.pass.hashes[i.name] = bcrypt.hashSync(
i.pass,
Expand Down

0 comments on commit 487104e

Please sign in to comment.