mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-05-10 20:12:36 +02:00
feat: POST /api/waitlist — backend endpoint for registration waitlist
- server.go: route registration (public, rate-limited) - soc_handlers.go: handleWaitlist with email validation, input sanitization - service.go: AddWaitlistEntry with audit trail + structured logging - Frontend form at /register already submits to this endpoint
This commit is contained in:
parent
29a0116125
commit
413fa8aa2c
3 changed files with 79 additions and 0 deletions
|
|
@ -1436,3 +1436,17 @@ func (s *Service) ImportIncidents(incidents []peer.SyncIncident) (int, error) {
|
|||
}
|
||||
return imported, nil
|
||||
}
|
||||
|
||||
// AddWaitlistEntry records a waitlist registration interest.
|
||||
// Currently logs to the audit trail — DB persistence added when registration opens.
|
||||
func (s *Service) AddWaitlistEntry(email, company, useCase string) {
|
||||
if s.logger != nil {
|
||||
s.logger.Record(audit.ModuleSOC, "WAITLIST:NEW",
|
||||
fmt.Sprintf("email=%s company=%s use_case=%s", email, company, useCase))
|
||||
}
|
||||
slog.Info("waitlist entry recorded",
|
||||
"email", email,
|
||||
"company", company,
|
||||
"use_case", useCase,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue