feat: add expiry and domain chip to sms and email otp (#8163)

# Which Problems Are Solved

There are some undocumented parameters that can be used. A good example
is on the "Verify SMS OTP" page.

# How the Problems Are Solved

Expiry and Domain chips are added to the Verify SMS OTP and Verify Email
OTP message text configs in the console.

# Additional Context

- Closes #7134

---------

Co-authored-by: Fabi <fabienne@zitadel.com>
Co-authored-by: Elio Bischof <elio@zitadel.com>
This commit is contained in:
Daniel Moisa 2024-07-04 12:04:22 +03:00 committed by GitHub
parent 32b707cf46
commit d9a9c013a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 34 additions and 15 deletions

View File

@ -491,6 +491,8 @@ export class MessageTextsComponent implements OnInit, OnDestroy {
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.verifiedPhone', value: '{{.VerifiedPhone}}' },
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.loginnames', value: '{{.LoginNames}}' },
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.changedate', value: '{{.ChangeDate}}' },
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.expiry', value: '{{.Expiry}}' },
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.domain', value: '{{.Domain}}' },
],
[MESSAGETYPES.VERIFYEMAILOTP]: [
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.otp', value: '{{.OTP}}' },
@ -507,6 +509,8 @@ export class MessageTextsComponent implements OnInit, OnDestroy {
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.verifiedPhone', value: '{{.VerifiedPhone}}' },
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.loginnames', value: '{{.LoginNames}}' },
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.changedate', value: '{{.ChangeDate}}' },
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.expiry', value: '{{.Expiry}}' },
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.domain', value: '{{.Domain}}' },
],
[MESSAGETYPES.PASSWORDLESS]: [
{ key: 'POLICY.MESSAGE_TEXTS.CHIPS.preferredLoginName', value: '{{.PreferredLoginName}}' },

View File

@ -1679,7 +1679,8 @@
"username": "Потребителско име",
"tempUsername": "Временно потребителско име",
"otp": "Еднократна парола",
"verifyUrl": "URL за потвърждаване на еднократна парола"
"verifyUrl": "URL за потвърждаване на еднократна парола",
"expiry": "Изтичане"
},
"TOAST": {
"UPDATED": "Персонализираните текстове са запазени."

View File

@ -1680,7 +1680,8 @@
"username": "Uživatelské jméno",
"tempUsername": "Dočasné uživatelské jméno",
"otp": "Jednorázové heslo",
"verifyUrl": "Ověřovací URL jednorázového hesla"
"verifyUrl": "Ověřovací URL jednorázového hesla",
"expiry": "Expirace"
},
"TOAST": {
"UPDATED": "Vlastní texty uloženy."

View File

@ -1680,7 +1680,8 @@
"username": "Username",
"tempUsername": "Temp. Username",
"otp": "Einmalpasswort",
"verifyUrl": "URL zur Überprüfung des Einmalpassworts"
"verifyUrl": "URL zur Überprüfung des Einmalpassworts",
"expiry": "Ablauf"
},
"TOAST": {
"UPDATED": "Benutzerdefinierte Texte gespeichert."

View File

@ -1680,7 +1680,8 @@
"username": "Username",
"tempUsername": "Temp username",
"otp": "One-time password",
"verifyUrl": "Verify One-time-password URL"
"verifyUrl": "Verify One-time-password URL",
"expiry": "Expiry"
},
"TOAST": {
"UPDATED": "Custom Texts saved."

View File

@ -1681,7 +1681,8 @@
"username": "Nombre de usuario",
"tempUsername": "Nombre de usuario temporal",
"otp": "Contraseña de un solo uso",
"verifyUrl": "URL para verificar la contraseña de un solo uso"
"verifyUrl": "URL para verificar la contraseña de un solo uso",
"expiry": "Expiración"
},
"TOAST": {
"UPDATED": "Textos personalizados guardados."

View File

@ -1680,7 +1680,8 @@
"username": "Nom d'utilisateur",
"tempUsername": "Nom d'utilisateur temporaire",
"otp": "Mot de passe à usage unique",
"verifyUrl": "URL pour vérifier le mot de passe à usage unique"
"verifyUrl": "URL pour vérifier le mot de passe à usage unique",
"expiry": "Expiration"
},
"TOAST": {
"UPDATED": "Textes personnalisés enregistrés."

View File

@ -1680,7 +1680,8 @@
"username": "Nome utente",
"tempUsername": "Nome utente temporaneo",
"otp": "Password monouso",
"verifyUrl": "URL per verificare la password monouso"
"verifyUrl": "URL per verificare la password monouso",
"expiry": "Scadenza"
},
"TOAST": {
"UPDATED": "Testi personalizzati salvati."

View File

@ -1676,7 +1676,8 @@
"username": "ユーザー名",
"tempUsername": "一時ユーザー名",
"otp": "ワンタイムパスワード",
"verifyUrl": "ワンタイムパスワードを確認するURL"
"verifyUrl": "ワンタイムパスワードを確認するURL",
"expiry": "有効期限"
},
"TOAST": {
"UPDATED": "カスタムテキストが保存されました。"

View File

@ -1681,7 +1681,8 @@
"username": "Корисничко име",
"tempUsername": "Привремено корисничко име",
"otp": "Еднократна лозинка",
"verifyUrl": "URL за потврдување на еднократна лозинка"
"verifyUrl": "URL за потврдување на еднократна лозинка",
"expiry": "Истекување"
},
"TOAST": {
"UPDATED": "Прилагодените текстови се зачувани."

View File

@ -1680,7 +1680,8 @@
"username": "Gebruikersnaam",
"tempUsername": "Tijdelijke gebruikersnaam",
"otp": "Eenmalig wachtwoord",
"verifyUrl": "Verifieer Eenmalig-wachtwoord URL"
"verifyUrl": "Verifieer Eenmalig-wachtwoord URL",
"expiry": "Vervaldatum"
},
"TOAST": {
"UPDATED": "Aangepaste Teksten opgeslagen."

View File

@ -1679,7 +1679,8 @@
"username": "Nazwa użytkownika",
"tempUsername": "Tymczasowa nazwa użytkownika",
"otp": "Hasło jednorazowe",
"verifyUrl": "URL do weryfikacji hasła jednorazowego"
"verifyUrl": "URL do weryfikacji hasła jednorazowego",
"expiry": "Wygaśnięcie"
},
"TOAST": {
"UPDATED": "Teksty niestandardowe zapisane."

View File

@ -1681,7 +1681,8 @@
"username": "Nome de usuário",
"tempUsername": "Nome de usuário temporário",
"otp": "Senha de uso único",
"verifyUrl": "URL para verificar a senha de uso único"
"verifyUrl": "URL para verificar a senha de uso único",
"expiry": "Data de expiração"
},
"TOAST": {
"UPDATED": "Textos personalizados salvos."

View File

@ -1747,7 +1747,8 @@
"username": "Имя пользователя",
"tempUsername": "Временное имя пользователя",
"otp": "Одноразовый пароль",
"verifyUrl": "Проверка URL-адреса с одноразовым паролем"
"verifyUrl": "Проверка URL-адреса с одноразовым паролем",
"expiry": "Срок действия"
},
"TOAST": {
"UPDATED": "Тексты сохранены."

View File

@ -1684,7 +1684,8 @@
"username": "Användarnamn",
"tempUsername": "Tillfälligt användarnamn",
"otp": "Engångslösenord",
"verifyUrl": "Verifiera Engångslösenord URL"
"verifyUrl": "Verifiera Engångslösenord URL",
"expiry": "Utgångsdatum"
},
"TOAST": {
"UPDATED": "Anpassade Texter sparade."

View File

@ -1679,7 +1679,8 @@
"username": "用户名",
"tempUsername": "临时用户名",
"otp": "一次性密码",
"verifyUrl": "验证一次性密码的URL"
"verifyUrl": "验证一次性密码的URL",
"expiry": "过期时间"
},
"TOAST": {
"UPDATED": "自定义文本已保存。"