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