Skip to content

Commit

Permalink
fix(backend): 招待コードが使い回せる問題を修正 (#12423)
Browse files Browse the repository at this point in the history
* (fix) 招待コードを一度のみ利用できるように

* Update Changelog
  • Loading branch information
kakkokari-gtyih committed Nov 23, 2023
1 parent 864827f commit 4a2a448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- Fix: 時間経過により無効化されたアンテナを再有効化したとき、サーバ再起動までその状況が反映されないのを修正 #12303
- Fix: ロールタイムラインが保存されない問題を修正
- Fix: api.jsonの生成ロジックを改善 #12402
- Fix: 招待コードが使い回せる問題を修正

## 2023.11.1

Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/SignupApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class SignupApiService {
code: invitationCode,
});

if (ticket == null) {
if (ticket == null || ticket.usedById != null) {
reply.code(400);
return;
}
Expand Down

0 comments on commit 4a2a448

Please sign in to comment.