first commit
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user