diff --git a/apps/login/locales/de.json b/apps/login/locales/de.json
index 0a15315a6f9..4314e65119f 100644
--- a/apps/login/locales/de.json
+++ b/apps/login/locales/de.json
@@ -166,7 +166,8 @@
"authenticator": {
"title": "Authentifizierungsmethode auswählen",
"description": "Wählen Sie die Methode, mit der Sie sich authentifizieren möchten.",
- "noMethodsAvailable": "Keine Authentifizierungsmethoden verfügbar"
+ "noMethodsAvailable": "Keine Authentifizierungsmethoden verfügbar",
+ "allSetup": "Sie haben bereits einen Authentifikator eingerichtet!"
},
"error": {
"unknownContext": "Der Kontext des Benutzers konnte nicht ermittelt werden. Stellen Sie sicher, dass Sie zuerst den Benutzernamen eingeben oder einen loginName als Suchparameter angeben.",
diff --git a/apps/login/locales/en.json b/apps/login/locales/en.json
index f14a9835094..7b1411488f6 100644
--- a/apps/login/locales/en.json
+++ b/apps/login/locales/en.json
@@ -166,7 +166,8 @@
"authenticator": {
"title": "Choose authentication method",
"description": "Select the method you would like to authenticate",
- "noMethodsAvailable": "No authentication methods available"
+ "noMethodsAvailable": "No authentication methods available",
+ "allSetup": "You have already setup an authenticator!"
},
"error": {
"unknownContext": "Could not get the context of the user. Make sure to enter the username first or provide a loginName as searchParam.",
diff --git a/apps/login/locales/es.json b/apps/login/locales/es.json
index b1f50506fbf..ee894d732bc 100644
--- a/apps/login/locales/es.json
+++ b/apps/login/locales/es.json
@@ -166,7 +166,8 @@
"authenticator": {
"title": "Seleccionar método de autenticación",
"description": "Selecciona el método con el que deseas autenticarte",
- "noMethodsAvailable": "No hay métodos de autenticación disponibles"
+ "noMethodsAvailable": "No hay métodos de autenticación disponibles",
+ "allSetup": "¡Ya has configurado un autenticador!"
},
"error": {
"unknownContext": "No se pudo obtener el contexto del usuario. Asegúrate de ingresar primero el nombre de usuario o proporcionar un loginName como parámetro de búsqueda.",
diff --git a/apps/login/locales/it.json b/apps/login/locales/it.json
index 31f80a1f637..a81f8f7c16d 100644
--- a/apps/login/locales/it.json
+++ b/apps/login/locales/it.json
@@ -166,7 +166,8 @@
"authenticator": {
"title": "Seleziona metodo di autenticazione",
"description": "Seleziona il metodo con cui desideri autenticarti",
- "noMethodsAvailable": "Nessun metodo di autenticazione disponibile"
+ "noMethodsAvailable": "Nessun metodo di autenticazione disponibile",
+ "allSetup": "Hai già configurato un autenticatore!"
},
"error": {
"unknownContext": "Impossibile ottenere il contesto dell'utente. Assicurati di inserire prima il nome utente o di fornire un loginName come parametro di ricerca.",
diff --git a/apps/login/src/components/choose-authenticator-to-setup.tsx b/apps/login/src/components/choose-authenticator-to-setup.tsx
index 250ed1bd5f2..fe1f66132cc 100644
--- a/apps/login/src/components/choose-authenticator-to-setup.tsx
+++ b/apps/login/src/components/choose-authenticator-to-setup.tsx
@@ -1,4 +1,3 @@
-import { Factors } from "@zitadel/proto/zitadel/session/v2/session_pb";
import {
LoginSettings,
PasskeysType,
@@ -11,33 +10,35 @@ import { PASSKEYS, PASSWORD } from "./auth-methods";
type Props = {
authMethods: AuthenticationMethodType[];
params: URLSearchParams;
- sessionFactors?: Factors;
loginSettings: LoginSettings;
};
export function ChooseAuthenticatorToSetup({
authMethods,
params,
- sessionFactors,
loginSettings,
}: Props) {
const t = useTranslations("authenticator");
- return (
- <>
- {loginSettings.passkeysType === PasskeysType.ALLOWED &&
- !loginSettings.allowUsernamePassword && (
-