PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
REFACTOR (settings): Rename the two-factor setting and drop its next-sign-in notice
Rostislav Duginfdca1d0f0b3c
diff --git a/frontend/src/features/settings/ui/SettingsComponent.tsx b/frontend/src/features/settings/ui/SettingsComponent.tsxindex e38cbf23..12f8979b 100644--- a/frontend/src/features/settings/ui/SettingsComponent.tsx+++ b/frontend/src/features/settings/ui/SettingsComponent.tsx@@ -210,10 +210,6 @@ export function SettingsComponent({ contentHeight }: Props) {{t('settings.twoFactorAuth.description')}</div>- <div className="mt-1 text-gray-500 dark:text-gray-400">- {t('settings.twoFactorAuth.appliesToNextSignIn')}- </div>-{!settings?.isEmailConfigured && (<div className="mt-1 text-gray-500 dark:text-gray-400"><Transdiff --git a/frontend/src/shared/i18n/locales/en.ts b/frontend/src/shared/i18n/locales/en.tsindex 16cc3f8c..86a6ce33 100644--- a/frontend/src/shared/i18n/locales/en.ts+++ b/frontend/src/shared/i18n/locales/en.ts@@ -246,11 +246,9 @@ export const en = {'When enabled, members (non-admin users) can create new workspaces. If not - only admins can create workspaces.',},twoFactorAuth: {- title: 'Require a code at sign-in',+ title: 'Enable two-factor sign-in',description:"When enabled, a password sign-in also has to present a six-digit code sent to the account's email address. Sign-in through Google or GitHub is not covered.",- appliesToNextSignIn:- 'The setting applies to the next sign-in. Sessions that are already open keep working.',mailServerRequired: 'This needs a mail server. <docsLink>Configure SMTP</docsLink> first.',},saving: 'Saving...',diff --git a/frontend/src/shared/i18n/locales/es.ts b/frontend/src/shared/i18n/locales/es.tsindex c404d751..5016f50a 100644--- a/frontend/src/shared/i18n/locales/es.ts+++ b/frontend/src/shared/i18n/locales/es.ts@@ -250,11 +250,9 @@ export const es: typeof en = {'Si está activado, los miembros (usuarios que no son administradores) pueden crear espacios de trabajo. Si no, solo pueden crearlos los administradores.',},twoFactorAuth: {- title: 'Pedir un código al iniciar sesión',+ title: 'Activar el inicio de sesión en dos pasos',description:'Si se activa, además de la contraseña hay que introducir un código de seis dígitos enviado al correo de la cuenta. No se aplica al inicio de sesión con Google ni con GitHub.',- appliesToNextSignIn:- 'El ajuste se aplica al siguiente inicio de sesión. Las sesiones ya abiertas siguen funcionando.',mailServerRequired:'Hace falta un servidor de correo. <docsLink>Configure SMTP</docsLink> primero.',},diff --git a/frontend/src/shared/i18n/locales/fr.ts b/frontend/src/shared/i18n/locales/fr.tsindex 6981365f..5dbf5024 100644--- a/frontend/src/shared/i18n/locales/fr.ts+++ b/frontend/src/shared/i18n/locales/fr.ts@@ -249,11 +249,9 @@ export const fr: typeof en = {"Si l'option est activée, les membres (utilisateurs non administrateurs) peuvent créer des espaces de travail. Sinon, seuls les administrateurs peuvent en créer.",},twoFactorAuth: {- title: 'Demander un code à la connexion',+ title: 'Activer la connexion en deux étapes',description:"Une fois activé, la connexion par mot de passe demande aussi un code à six chiffres envoyé à l'adresse du compte. La connexion par Google ou GitHub n'est pas concernée.",- appliesToNextSignIn:- "Le réglage s'applique à la prochaine connexion. Les sessions déjà ouvertes continuent de fonctionner.",mailServerRequired:"Il faut un serveur de messagerie. <docsLink>Configurez le SMTP</docsLink> d'abord.",},diff --git a/frontend/src/shared/i18n/locales/pt.ts b/frontend/src/shared/i18n/locales/pt.tsindex b46d4609..4938a2b8 100644--- a/frontend/src/shared/i18n/locales/pt.ts+++ b/frontend/src/shared/i18n/locales/pt.ts@@ -250,11 +250,9 @@ export const pt: typeof en = {'Quando ativado, os membros (usuários que não são administradores) podem criar novos espaços de trabalho. Quando desativado, só os administradores podem criá-los.',},twoFactorAuth: {- title: 'Pedir um código ao entrar',+ title: 'Ativar o login em duas etapas',description:'Quando ativado, além da senha é preciso informar um código de seis dígitos enviado para o e-mail da conta. Não vale para o login pelo Google ou pelo GitHub.',- appliesToNextSignIn:- 'A configuração vale a partir do próximo login. As sessões já abertas continuam funcionando.',mailServerRequired:'É preciso ter um servidor de e-mail. <docsLink>Configure o SMTP</docsLink> primeiro.',},diff --git a/frontend/src/shared/i18n/locales/ru.ts b/frontend/src/shared/i18n/locales/ru.tsindex 21bccedf..103da617 100644--- a/frontend/src/shared/i18n/locales/ru.ts+++ b/frontend/src/shared/i18n/locales/ru.ts@@ -246,11 +246,9 @@ export const ru: typeof en = {'Если включено, участники (не администраторы) могут создавать новые рабочие пространства. Если выключено — только администраторы.',},twoFactorAuth: {- title: 'Запрашивать код при входе',+ title: 'Включить двухфакторный вход',description:'Если включено, после пароля нужно ввести шестизначный код, отправленный на почту аккаунта. На вход через Google и GitHub это не распространяется.',- appliesToNextSignIn:- 'Настройка действует со следующего входа. Уже открытые сессии продолжают работать.',mailServerRequired: 'Нужен почтовый сервер. Сначала <docsLink>настройте SMTP</docsLink>.',},saving: 'Сохраняем...',diff --git a/frontend/src/shared/i18n/locales/zh.ts b/frontend/src/shared/i18n/locales/zh.tsindex 48956ae2..48f9da4a 100644--- a/frontend/src/shared/i18n/locales/zh.ts+++ b/frontend/src/shared/i18n/locales/zh.ts@@ -239,10 +239,9 @@ export const zh: typeof en = {'开启后,成员(非管理员用户)可以创建新的工作区。关闭后,只有管理员能创建工作区。',},twoFactorAuth: {- title: '登录时要求验证码',+ title: '启用双因素登录',description:'启用后,输入密码之后还需要填写发送到账号邮箱的六位验证码。通过 Google 或 GitHub 登录不受此设置影响。',- appliesToNextSignIn: '该设置从下次登录开始生效,已经打开的会话不受影响。',mailServerRequired: '这需要邮件服务器,请先<docsLink>配置 SMTP</docsLink>。',},saving: '正在保存…',diff --git a/openspec/specs/two-factor-authentication/spec.md b/openspec/specs/two-factor-authentication/spec.mdindex cb035355..968e2c8c 100644--- a/openspec/specs/two-factor-authentication/spec.md+++ b/openspec/specs/two-factor-authentication/spec.md@@ -10,7 +10,7 @@ Lets the owner of an instance require a second, emailed factor before a passwordThe instance SHALL offer a single global setting that requires a second factor for password sign-in. It SHALL be off until an administrator turns it on, SHALL apply to every account on the instance once on, and SHALL be changeable only by an administrator.-Turning the setting on SHALL NOT end sessions that already exist. An access token issued before the change SHALL keep working until it expires or a password change invalidates it, and the interface offering the setting SHALL say so, so that an administrator reacting to a leaked password knows the switch alone does not shut that password's session out.+Turning the setting on SHALL NOT end sessions that already exist. An access token issued before the change SHALL keep working until it expires or a password change invalidates it.#### Scenario: Default state@@ -25,7 +25,7 @@ Turning the setting on SHALL NOT end sessions that already exist. An access toke#### Scenario: A session that predates the switch- **WHEN** an administrator turns the second factor on while another user is already signed in-- **THEN** that user's session keeps working, and the interface has told the administrator that the setting applies to the next sign-in+- **THEN** that user's session keeps working### Requirement: The second factor cannot be turned on unless the instance can deliver codes