slaventius 2 years ago
parent 2f3300685c
commit b80d509593
  1. 8
      internal/transport/grpc/grpc.go

@ -71,10 +71,10 @@ func (s *AuthDBServer) Registration(ctx context.Context, req *api.RegistrationRe
s.mu.Lock()
defer s.mu.Unlock()
// //
// if _, ok := s.users[req.GetLogin()]; ok {
// return nil, errors.New("login already registered")
// }
//
if _, ok := s.users[req.GetLogin()]; ok {
return nil, errors.New("login already registered")
}
//
s.id = s.id + 1

Loading…
Cancel
Save