MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / emailConfigured

Method emailConfigured

internal/server/server.go:670–672  ·  view source on GitHub ↗

emailConfigured reports whether this instance can actually SEND an emailed link — a sender is wired AND the public base URL is usable. This is the DR-6 gate for cloud email self-registration: the sender-only check (s.email != nil) is insufficient because link generation also needs a reachable public

()

Source from the content-addressed store, hash-verified

668// != nil) is insufficient because link generation also needs a reachable
669// public base URL (see handleRegister's verification email + BUG-899).
670func (s *Server) emailConfigured() bool {
671 return s.email != nil && s.hasUsableBaseURL()
672}
673
674// SetEventBus attaches an event bus for real-time SSE streaming.
675func (s *Server) SetEventBus(bus events.EventBus) {

Calls 1

hasUsableBaseURLMethod · 0.95