obsidian-vault/ligbox-ops-platform/deploy/vm112-wizard/frontend/src/clientSettings.js
Ligbox Obsidian Vault 4248e3694c docs(vm112/vm122): espelho fixes wizard /admin + Desk VM001 + KB 2026-06-19
- deploy/vm112-wizard: main-wizard DomainAdmin route, clientSettings, FinishToolbar
- deploy/vm122-desk: card Ligbox Datacenter Node VM001, audit sync
- Spec 025: secao Passo Concluido CTAs
- KB: Portal de gerenciamento reabria wizard Concluido
2026-06-19 21:52:09 +00:00

11 lines
478 B
JavaScript

/** Texto canónico — não depender de sessões antigas em cache. */
export const CLIENT_SMTP_NOTE =
'Use a porta 465 com SSL/TLS para envio. Não use a porta 587.'
export function normalizeClientSettings(raw) {
if (!raw || typeof raw !== 'object') return null
const note = String(raw.smtp_note || '')
const legacy =
/partilhad/i.test(note) || /ibytera/i.test(note) || /587.*domínio/i.test(note)
return legacy ? { ...raw, smtp_note: CLIENT_SMTP_NOTE } : raw
}