Replace enabled checkbox with account mode select

Identities can now be set as primary (default), alias of an existing
separate account, or separate account. Alias records store parent_id
and skip server validation. Password sentinel changed to a safe string
that survives HTML form round-trips. Preconfig host composition fixed
to include security scheme.
This commit is contained in:
Laurent Dinclaux
2026-02-10 22:28:30 +11:00
parent 08797ab5a8
commit e4bd92ca63
9 changed files with 355 additions and 100 deletions

View File

@@ -12,8 +12,11 @@ $labels['form.preconfig_only_warning'] = 'Die Konfiguration als separates Konto
// General
$labels['form.common.general'] = 'Allgemein';
// Enabled
$labels['form.common.enabled'] = 'Aktiviert';
// Account mode
$labels['form.common.mode'] = 'Kontomodus';
$labels['form.common.mode.primary'] = 'Hauptkonto';
$labels['form.common.mode.separate'] = 'Separates Konto';
$labels['form.common.mode.hint'] = 'Verknüpfen Sie diese Identität mit einem bestehenden Konto oder konfigurieren Sie sie als separates Konto mit eigenem Mailserver.';
// Label
$labels['form.common.label'] = 'Bezeichnung';

View File

@@ -12,8 +12,11 @@ $labels['form.preconfig_only_warning'] = 'Separate account configuration is not
// General
$labels['form.common.general'] = 'General';
// Enabled
$labels['form.common.enabled'] = 'Enabled';
// Account mode
$labels['form.common.mode'] = 'Account mode';
$labels['form.common.mode.primary'] = 'Primary account';
$labels['form.common.mode.separate'] = 'Separate account';
$labels['form.common.mode.hint'] = 'Link this identity to an existing account, or configure it as a separate account with its own mail server.';
// Label
$labels['form.common.label'] = 'Label';

View File

@@ -12,8 +12,11 @@ $labels['form.preconfig_only_warning'] = 'La configuration de compte séparé n\
// General
$labels['form.common.general'] = 'Général';
// Enabled
$labels['form.common.enabled'] = 'Activer';
// Account mode
$labels['form.common.mode'] = 'Mode de compte';
$labels['form.common.mode.primary'] = 'Compte principal';
$labels['form.common.mode.separate'] = 'Compte séparé';
$labels['form.common.mode.hint'] = 'Rattachez cette identité à un compte existant, ou configurez-la comme un compte séparé avec son propre serveur de messagerie.';
// Label
$labels['form.common.label'] = 'Nom à afficher';

View File

@@ -12,8 +12,11 @@ $labels['form.preconfig_only_warning'] = 'La configurazione come account separat
// General
$labels['form.common.general'] = 'Generale';
// Enabled
$labels['form.common.enabled'] = 'Abilita';
// Account mode
$labels['form.common.mode'] = 'Modalità account';
$labels['form.common.mode.primary'] = 'Account principale';
$labels['form.common.mode.separate'] = 'Account separato';
$labels['form.common.mode.hint'] = 'Collega questa identità a un account esistente o configurala come un account separato con il proprio server di posta.';
// Label
$labels['form.common.label'] = 'Nome visualizzato';

View File

@@ -12,8 +12,11 @@ $labels['form.preconfig_only_warning'] = 'Configuratie als afzonderlijk account
// General
$labels['form.common.general'] = 'Algemeen';
// Enabled
$labels['form.common.enabled'] = 'Inschakelen';
// Account mode
$labels['form.common.mode'] = 'Accountmodus';
$labels['form.common.mode.primary'] = 'Hoofdaccount';
$labels['form.common.mode.separate'] = 'Afzonderlijk account';
$labels['form.common.mode.hint'] = 'Koppel deze identiteit aan een bestaand account of configureer het als een afzonderlijk account met een eigen mailserver.';
// Label
$labels['form.common.label'] = 'Label';

View File

@@ -12,8 +12,11 @@ $labels['form.preconfig_only_warning'] = 'Настройка отдельног
// General
$labels['form.common.general'] = 'Общие';
// Enabled
$labels['form.common.enabled'] = 'Включено';
// Account mode
$labels['form.common.mode'] = 'Режим аккаунта';
$labels['form.common.mode.primary'] = 'Основной аккаунт';
$labels['form.common.mode.separate'] = 'Отдельный аккаунт';
$labels['form.common.mode.hint'] = 'Привяжите эту учётную запись к существующему аккаунту или настройте её как отдельный аккаунт с собственным почтовым сервером.';
// Label
$labels['form.common.label'] = 'Название';

View File

@@ -12,8 +12,11 @@ $labels['form.preconfig_only_warning'] = 'Konfiguracija ločenega računa za dom
// General
$labels['form.common.general'] = 'Splošno';
// Enabled
$labels['form.common.enabled'] = 'Omogočeno';
// Account mode
$labels['form.common.mode'] = 'Način računa';
$labels['form.common.mode.primary'] = 'Glavni račun';
$labels['form.common.mode.separate'] = 'Ločen račun';
$labels['form.common.mode.hint'] = 'Povežite to identiteto z obstoječim računom ali jo konfigurirajte kot ločen račun z lastnim poštnim strežnikom.';
// Label
$labels['form.common.label'] = 'Oznaka';