Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion apps/login/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"loginname": {
"title": "Willkommen zurück!",
"description": "Geben Sie Ihre Anmeldedaten ein.",
"register": "Neuen Benutzer registrieren",
"register": "Konto erstellen",
"submit": "Weiter"
},
"password": {
Expand Down Expand Up @@ -186,6 +186,8 @@
"title": "Registrierung fehlgeschlagen",
"description": "Einige Daten fehlen. Bitte überprüfen Sie Ihre Eingaben."
},
"alreadyRegistered": "Bereits ein Konto?",
"loginNow": "Hier anmelden.",
"title": "Registrieren",
"description": "Erstellen Sie Ihr ZITADEL-Konto.",
"noMethodAvailableWarning": "Keine Authentifizierungsmethode verfügbar. Bitte wenden Sie sich an den Administrator.",
Expand All @@ -201,6 +203,11 @@
"submit": "Weiter"
}
},
"waitlist": {
"title": "Willkommen!",
"subtitle": "Lass uns loslegen",
"description": "Erstellen Sie Ihr kostenloses Konto mit nur wenigen Angaben"
},
"invite": {
"title": "Benutzer einladen",
"description": "Geben Sie die E-Mail-Adresse des Benutzers ein, den Sie einladen möchten.",
Expand Down
9 changes: 5 additions & 4 deletions apps/login/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"loginname": {
"title": "Welcome",
"description": "Choose your login method:",
"register": "Request access",
"register": "Create account",
"submit": "Continue",
"notRegistered": "Not registered?",
"termsOfService": "By continuing, you agree to Datum's <terms>Terms of Service</terms> and <privacy>Privacy Policy</privacy>, and to receive periodic emails with updates."
Expand Down Expand Up @@ -188,7 +188,7 @@
"title": "Missing data",
"description": "Provide email, first and last name to register."
},
"alreadyRegistered": "Have an invitation?",
"alreadyRegistered": "Already have an account?",
"loginNow": "Log in here.",
"onWaitListQuestion": "Still on the waitlist? ",
"onWaitListInfo": "We'll email you when it's your turn!",
Expand All @@ -208,8 +208,9 @@
}
},
"waitlist": {
"title": "Get on the waitlist",
"description": "Choose how you’ll log in so you can access Datum as soon as the doors open - no extra setup needed."
"title": "Welcome!",
"subtitle": "Let's get you started",
"description": "Create your free account with just a few details"
},
"invite": {
"title": "Invite User",
Expand Down
9 changes: 8 additions & 1 deletion apps/login/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"loginname": {
"title": "¡Bienvenido de nuevo!",
"description": "Introduce tus datos de acceso.",
"register": "Registrar nuevo usuario",
"register": "Crear cuenta",
"submit": "Continuar"
},
"password": {
Expand Down Expand Up @@ -186,6 +186,8 @@
"title": "Datos faltantes",
"description": "No se proporcionaron datos suficientes para el registro."
},
"alreadyRegistered": "¿Ya tienes una cuenta?",
"loginNow": "Inicia sesión aquí.",
"title": "Registrarse",
"description": "Crea tu cuenta ZITADEL.",
"noMethodAvailableWarning": "No hay métodos de autenticación disponibles. Por favor, contacta a tu administrador.",
Expand All @@ -201,6 +203,11 @@
"submit": "Continuar"
}
},
"waitlist": {
"title": "¡Bienvenido!",
"subtitle": "Empecemos",
"description": "Crea tu cuenta gratuita con solo unos pocos detalles"
},
"invite": {
"title": "Invitar usuario",
"description": "Introduce el correo electrónico del usuario que deseas invitar.",
Expand Down
9 changes: 8 additions & 1 deletion apps/login/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"loginname": {
"title": "Bentornato!",
"description": "Inserisci i tuoi dati di accesso.",
"register": "Registrati come nuovo utente",
"register": "Crea account",
"submit": "Continua"
},
"password": {
Expand Down Expand Up @@ -186,6 +186,8 @@
"title": "Registrazione",
"description": "Inserisci i tuoi dati per registrarti."
},
"alreadyRegistered": "Hai già un account?",
"loginNow": "Accedi qui.",
"title": "Registrati",
"description": "Crea il tuo account ZITADEL.",
"noMethodAvailableWarning": "Nessun metodo di autenticazione disponibile. Contatta l'amministratore di sistema per assistenza.",
Expand All @@ -201,6 +203,11 @@
"submit": "Continua"
}
},
"waitlist": {
"title": "Benvenuto!",
"subtitle": "Iniziamo",
"description": "Crea il tuo account gratuito con pochi dettagli"
},
"invite": {
"title": "Invita Utente",
"description": "Inserisci l'indirizzo email dell'utente che desideri invitare.",
Expand Down
9 changes: 8 additions & 1 deletion apps/login/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"loginname": {
"title": "Witamy ponownie!",
"description": "Wprowadź dane logowania.",
"register": "Zarejestruj nowego użytkownika",
"register": "Utwórz konto",
"submit": "Kontynuuj"
},
"password": {
Expand Down Expand Up @@ -186,6 +186,8 @@
"title": "Brak danych",
"description": "Podaj e-mail, imię i nazwisko, aby się zarejestrować."
},
"alreadyRegistered": "Masz już konto?",
"loginNow": "Zaloguj się tutaj.",
"title": "Rejestracja",
"description": "Utwórz konto ZITADEL.",
"noMethodAvailableWarning": "Brak dostępnych metod uwierzytelniania. Skontaktuj się z administratorem.",
Expand All @@ -201,6 +203,11 @@
"submit": "Kontynuuj"
}
},
"waitlist": {
"title": "Witaj!",
"subtitle": "Zacznijmy",
"description": "Utwórz swoje darmowe konto za pomocą kilku informacji"
},
"invite": {
"title": "Zaproś użytkownika",
"description": "Podaj adres e-mail oraz imię i nazwisko użytkownika, którego chcesz zaprosić.",
Expand Down
9 changes: 8 additions & 1 deletion apps/login/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"loginname": {
"title": "С возвращением!",
"description": "Введите свои данные для входа.",
"register": "Зарегистрировать нового пользователя",
"register": "Создать аккаунт",
"submit": "Продолжить"
},
"password": {
Expand Down Expand Up @@ -186,6 +186,8 @@
"title": "Недостаточно данных",
"description": "Укажите email, имя и фамилию для регистрации."
},
"alreadyRegistered": "Уже есть аккаунт?",
"loginNow": "Войти здесь.",
"title": "Регистрация",
"description": "Создайте свой аккаунт ZITADEL.",
"noMethodAvailableWarning": "Нет доступных методов аутентификации. Обратитесь к администратору.",
Expand All @@ -201,6 +203,11 @@
"submit": "Продолжить"
}
},
"waitlist": {
"title": "Добро пожаловать!",
"subtitle": "Давайте начнём",
"description": "Создайте бесплатную учётную запись всего за несколько шагов"
},
"invite": {
"title": "Пригласить пользователя",
"description": "Укажите email и имя пользователя для приглашения.",
Expand Down
9 changes: 8 additions & 1 deletion apps/login/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"loginname": {
"title": "欢迎回来!",
"description": "请输入您的登录信息。",
"register": "注册新用户",
"register": "创建账户",
"submit": "继续"
},
"password": {
Expand Down Expand Up @@ -186,6 +186,8 @@
"title": "缺少数据",
"description": "请提供所有必需的数据。"
},
"alreadyRegistered": "已有账户?",
"loginNow": "在此登录。",
"title": "注册",
"description": "创建您的 ZITADEL 账户。",
"noMethodAvailableWarning": "没有可用的认证方法。请联系您的系统管理员。",
Expand All @@ -201,6 +203,11 @@
"submit": "继续"
}
},
"waitlist": {
"title": "欢迎!",
"subtitle": "让我们开始吧",
"description": "只需几个细节即可创建您的免费账户"
},
"invite": {
"title": "邀请用户",
"description": "提供您想邀请的用户的电子邮箱地址和姓名。",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export default async function Page(props: {
{ idpIntentId: id, idpIntentToken: token },
requestId,
onSuccessRedirectTo,
idpInformation.idpId,
);
}

Expand Down Expand Up @@ -328,6 +329,7 @@ export default async function Page(props: {
{ idpIntentId: id, idpIntentToken: token },
requestId,
onSuccessRedirectTo,
idpInformation.idpId,
);
}
}
Expand Down Expand Up @@ -383,6 +385,8 @@ export default async function Page(props: {
foundUser.userId,
{ idpIntentId: id, idpIntentToken: token },
requestId,
undefined,
idpInformation.idpId,
);
}
}
Expand Down Expand Up @@ -487,6 +491,7 @@ export default async function Page(props: {
userId={newUser.userId}
idpIntent={{ idpIntentId: id, idpIntentToken: token }}
requestId={requestId}
idpId={idpInformation.idpId}
/>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ export const LoginBtn = () => {
<Translated i18nKey="loginNow" namespace="register" />
</button>
</div>
<div className="text-center ztdl-p text-sm font-normal mt-6 bg-body-background rounded-lg border border-card-border p-6 shadow-[0_2px_4px_2px_rgba(12,29,49,0.03)]">
<strong>
<Translated i18nKey="onWaitListQuestion" namespace="register" />
</strong>
<Translated i18nKey="onWaitListInfo" namespace="register" />
</div>
</>
);
};
5 changes: 4 additions & 1 deletion apps/login/src/app/(main)/(illustration)/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ export default async function Page(props: {

return (
<>
<h1>
<h3>
<Translated i18nKey="title" namespace="waitlist" />
</h3>
<h1>
<Translated i18nKey="subtitle" namespace="waitlist" />
</h1>
<p className="ztdl-p description">
<Translated i18nKey="description" namespace="waitlist" />
Expand Down
4 changes: 3 additions & 1 deletion apps/login/src/components/idp-signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@ import { Alert } from "./alert";

type Props = {
userId: string;
// organization: string;
idpIntent: {
idpIntentId: string;
idpIntentToken: string;
};
requestId?: string;
onSuccessRedirectTo?: string;
idpId?: string;
};

export function IdpSignin({
userId,
idpIntent: { idpIntentId, idpIntentToken },
requestId,
onSuccessRedirectTo,
idpId,
}: Props) {
const [isPending, startTransition] = useTransition();
const [error, setError] = useState<string | null>(null);
Expand All @@ -37,6 +38,7 @@ export function IdpSignin({
idpIntentToken,
},
requestId,
idpId,
})
.then((response) => {
if (response && "error" in response && response?.error) {
Expand Down
2 changes: 2 additions & 0 deletions apps/login/src/components/idps/pages/linking-success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export async function linkingSuccess(
idpIntent: { idpIntentId: string; idpIntentToken: string },
requestId?: string,
onSuccessRedirectTo?: string,
idpId?: string,
) {
return (
<>
Expand All @@ -21,6 +22,7 @@ export async function linkingSuccess(
idpIntent={idpIntent}
requestId={requestId}
onSuccessRedirectTo={onSuccessRedirectTo}
idpId={idpId}
/>
</>
);
Expand Down
2 changes: 2 additions & 0 deletions apps/login/src/components/idps/pages/login-success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export async function loginSuccess(
idpIntent: { idpIntentId: string; idpIntentToken: string },
requestId?: string,
onSuccessRedirectTo?: string,
idpId?: string,
) {
return (
<>
Expand All @@ -21,6 +22,7 @@ export async function loginSuccess(
idpIntent={idpIntent}
requestId={requestId}
onSuccessRedirectTo={onSuccessRedirectTo}
idpId={idpId}
/>
</>
);
Expand Down
12 changes: 10 additions & 2 deletions apps/login/src/lib/server/idp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export async function redirectToIdp(

// redirect to LDAP page where username and password is requested
if (provider === "ldap") {
await setLastUsedIdpId(idpId);
params.set("idpId", idpId);
redirect(`/idp/ldap?` + params.toString());
}
Expand All @@ -70,7 +69,6 @@ export async function redirectToIdp(
}

if (response && "redirect" in response && response?.redirect) {
await setLastUsedIdpId(idpId);
redirect(response.redirect);
}

Expand Down Expand Up @@ -114,6 +112,7 @@ type CreateNewSessionCommand = {
password?: string;
organization?: string;
requestId?: string;
idpId?: string;
};

export async function createNewSessionFromIdpIntent(
Expand Down Expand Up @@ -171,6 +170,9 @@ export async function createNewSessionFromIdpIntent(
);

if (emailVerificationCheck?.redirect) {
if (command.idpId) {
await setLastUsedIdpId(command.idpId);
}
return emailVerificationCheck;
}

Expand All @@ -197,6 +199,9 @@ export async function createNewSessionFromIdpIntent(
command.requestId,
);
if (mfaFactorCheck?.redirect) {
if (command.idpId) {
await setLastUsedIdpId(command.idpId);
}
return mfaFactorCheck;
}

Expand All @@ -215,6 +220,9 @@ export async function createNewSessionFromIdpIntent(
);

if (url) {
if (command.idpId) {
await setLastUsedIdpId(command.idpId);
}
return { redirect: url };
}
}
Expand Down
Loading
Loading