first commit

This commit is contained in:
2026-08-08 23:12:37 +02:00
parent ff6ef46cd4
commit e3fd942c47
20 changed files with 494 additions and 271 deletions
@@ -70,13 +70,7 @@ func (s *PasswordAuthenticator) Register(ctx context.Context, registration auth.
Enabled: true,
}
count, err := s.userRepository.CountUsers()
if err != nil {
return nil, err
}
if count == 0 {
user.Administrator = true
}
// TODO: create team "Espace personnel" and put user in it
user, err = s.userRepository.CreateUser(user)