Skip to content

Commit

Permalink
enhance(backend): サインアップ無効時にはAPIでも無効にする
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Dec 12, 2024
1 parent 11206a2 commit 14a2f9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/backend/src/server/api/SignupApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ export class SignupApiService {

let ticket: MiRegistrationTicket | null = null;

if (this.meta.disableSignup) {
reply.code(400);
return;
}

if (this.meta.disableRegistration) {
if (invitationCode == null || typeof invitationCode !== 'string') {
reply.code(400);
Expand Down

0 comments on commit 14a2f9d

Please sign in to comment.