refac: GET /v1/auth/registration

This commit is contained in:
fsylvain committed 2026-09-25 15:54:42 +02:00
1 parent 61828783a1
commit 2a64991916
6 files changed
+329

No files matched your search

@@ -79,6 +79,10 @@ func (g *CreateUserUseCase) CreateUser(createUser CreateUserCommand) (user.User,
return createdUser, nil
}
func (g *CreateUserUseCase) IsRegistrationOpen() bool {
return !g.registrationClosed()
}
func (g *CreateUserUseCase) registrationClosed() bool {
for _, existingUser := range g.userRepository.GetAll() {
if existingUser.IsVerified {