mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:37:31 +00:00
feat(console): message and login texts, privacy policy (#2016)
* message texts wrapper components * message-text sub, i18n, grid * fix routing * pack * pack * update material * audit * fix mgmt service for labelplcy * map conv * edit text from map * request map * fetch data, mgmt admin service * warn box, i18n * resetbtn * login texts * login text requests * reset, default, i18n * disabled, features, message text setter, service * locale switcher * policy grid * password reset, domain claimed i18n * lint files * fix admin service, i18n, lang setter * fix scss duplicate * privacy policy, cleanup grid, fix message, login texts (#2031) * policy grid everywhere 🦒 * cleanup home * log login text request * patch all data * refresh toggle * fix: add dialog for unsaved changes (#2057) * logintexts dialog * check for dialog on pairwise operation * fix: patch value to local state after save * fix: i18n and custom login texts (#2060) * fix: i18n and custom login texts * fix: tos and privacy texts * fix frontend * fix: tos and privacy texts and tests * fix: i18n, tos and privacy texts and tests * fix frontend maps * i18n * add ResetCustomLoginTextToDefault in admin api and fix template remove in handlers * resetlogintexttodefault Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -149,7 +149,7 @@ const (
|
||||
LoginKeyVerifyMFAU2FDescription = LoginKeyVerifyMFAU2F + "Description"
|
||||
LoginKeyVerifyMFAU2FNotSupported = LoginKeyVerifyMFAU2F + "NotSupported"
|
||||
LoginKeyVerifyMFAU2FValidateTokenText = LoginKeyVerifyMFAU2F + "ValidateTokenButtonText"
|
||||
LoginKeyVerifyMFAU2FErrorRetry = LoginKeyVerifyMFAU2F + "Error.Retry"
|
||||
LoginKeyVerifyMFAU2FErrorRetry = LoginKeyVerifyMFAU2F + "ErrorRetry"
|
||||
|
||||
LoginKeyPasswordless = "Passwordless."
|
||||
LoginKeyPasswordlessTitle = LoginKeyPasswordless + "Title"
|
||||
@@ -164,7 +164,7 @@ const (
|
||||
LoginKeyPasswordChangeDescription = LoginKeyPasswordChange + "Description"
|
||||
LoginKeyPasswordChangeOldPasswordLabel = LoginKeyPasswordChange + "OldPasswordLabel"
|
||||
LoginKeyPasswordChangeNewPasswordLabel = LoginKeyPasswordChange + "NewPasswordLabel"
|
||||
LoginKeyPasswordChangeNewPasswordConfirmLabel = LoginKeyPasswordChange + "NewPasswordConfirmationLabel"
|
||||
LoginKeyPasswordChangeNewPasswordConfirmLabel = LoginKeyPasswordChange + "NewPasswordConfirmLabel"
|
||||
LoginKeyPasswordChangeCancelButtonText = LoginKeyPasswordChange + "CancelButtonText"
|
||||
LoginKeyPasswordChangeNextButtonText = LoginKeyPasswordChange + "NextButtonText"
|
||||
|
||||
@@ -184,48 +184,42 @@ const (
|
||||
LoginKeyRegistrationOptionUserNameButtonText = LoginKeyRegistrationOption + "RegisterUsernamePasswordButtonText"
|
||||
LoginKeyRegistrationOptionExternalLoginDescription = LoginKeyRegistrationOption + "ExternalLoginDescription"
|
||||
|
||||
LoginKeyRegistrationUser = "RegistrationUser."
|
||||
LoginKeyRegistrationUserTitle = LoginKeyRegistrationUser + "Title"
|
||||
LoginKeyRegistrationUserDescription = LoginKeyRegistrationUser + "Description"
|
||||
LoginKeyRegistrationUserDescriptionOrgRegister = LoginKeyRegistrationUser + "DescriptionOrgRegister"
|
||||
LoginKeyRegistrationUserFirstnameLabel = LoginKeyRegistrationUser + "FirstnameLabel"
|
||||
LoginKeyRegistrationUserLastnameLabel = LoginKeyRegistrationUser + "LastnameLabel"
|
||||
LoginKeyRegistrationUserEmailLabel = LoginKeyRegistrationUser + "EmailLabel"
|
||||
LoginKeyRegistrationUserUsernameLabel = LoginKeyRegistrationUser + "UsernameLabel"
|
||||
LoginKeyRegistrationUserLanguageLabel = LoginKeyRegistrationUser + "LanguageLabel"
|
||||
LoginKeyRegistrationUserGenderLabel = LoginKeyRegistrationUser + "GenderLabel"
|
||||
LoginKeyRegistrationUserPasswordLabel = LoginKeyRegistrationUser + "PasswordLabel"
|
||||
LoginKeyRegistrationUserPasswordConfirmLabel = LoginKeyRegistrationUser + "PasswordConfirmLabel"
|
||||
LoginKeyRegistrationUserTOSAndPrivacyLabel = LoginKeyRegistrationUser + "TosAndPrivacyLabel"
|
||||
LoginKeyRegistrationUserTOSConfirm = LoginKeyRegistrationUser + "TosConfirm"
|
||||
LoginKeyRegistrationUserTOSLink = LoginKeyRegistrationUser + "TosLink"
|
||||
LoginKeyRegistrationUserTOSLinkText = LoginKeyRegistrationUser + "TosLinkText"
|
||||
LoginKeyRegistrationUserPrivacyConfirm = LoginKeyRegistrationUser + "TosConfirmAnd"
|
||||
LoginKeyRegistrationUserPrivacyLink = LoginKeyRegistrationUser + "PrivacyLink"
|
||||
LoginKeyRegistrationUserPrivacyLinkText = LoginKeyRegistrationUser + "PrivacyLinkText"
|
||||
LoginKeyRegistrationUserExternalLoginDescription = LoginKeyRegistrationUser + "ExternalUserDescription"
|
||||
LoginKeyRegistrationUserNextButtonText = LoginKeyRegistrationUser + "NextButtonText"
|
||||
LoginKeyRegistrationUserBackButtonText = LoginKeyRegistrationUser + "BackButtonText"
|
||||
LoginKeyRegistrationUser = "RegistrationUser."
|
||||
LoginKeyRegistrationUserTitle = LoginKeyRegistrationUser + "Title"
|
||||
LoginKeyRegistrationUserDescription = LoginKeyRegistrationUser + "Description"
|
||||
LoginKeyRegistrationUserDescriptionOrgRegister = LoginKeyRegistrationUser + "DescriptionOrgRegister"
|
||||
LoginKeyRegistrationUserFirstnameLabel = LoginKeyRegistrationUser + "FirstnameLabel"
|
||||
LoginKeyRegistrationUserLastnameLabel = LoginKeyRegistrationUser + "LastnameLabel"
|
||||
LoginKeyRegistrationUserEmailLabel = LoginKeyRegistrationUser + "EmailLabel"
|
||||
LoginKeyRegistrationUserUsernameLabel = LoginKeyRegistrationUser + "UsernameLabel"
|
||||
LoginKeyRegistrationUserLanguageLabel = LoginKeyRegistrationUser + "LanguageLabel"
|
||||
LoginKeyRegistrationUserGenderLabel = LoginKeyRegistrationUser + "GenderLabel"
|
||||
LoginKeyRegistrationUserPasswordLabel = LoginKeyRegistrationUser + "PasswordLabel"
|
||||
LoginKeyRegistrationUserPasswordConfirmLabel = LoginKeyRegistrationUser + "PasswordConfirmLabel"
|
||||
LoginKeyRegistrationUserTOSAndPrivacyLabel = LoginKeyRegistrationUser + "TosAndPrivacyLabel"
|
||||
LoginKeyRegistrationUserTOSConfirm = LoginKeyRegistrationUser + "TosConfirm"
|
||||
LoginKeyRegistrationUserTOSLinkText = LoginKeyRegistrationUser + "TosLinkText"
|
||||
LoginKeyRegistrationUserTOSConfirmAnd = LoginKeyRegistrationUser + "TosConfirmAnd"
|
||||
LoginKeyRegistrationUserPrivacyLinkText = LoginKeyRegistrationUser + "PrivacyLinkText"
|
||||
LoginKeyRegistrationUserNextButtonText = LoginKeyRegistrationUser + "NextButtonText"
|
||||
LoginKeyRegistrationUserBackButtonText = LoginKeyRegistrationUser + "BackButtonText"
|
||||
|
||||
LoginKeyRegistrationOrg = "RegistrationOrg."
|
||||
LoginKeyRegisterOrgTitle = LoginKeyRegistrationOrg + "Title"
|
||||
LoginKeyRegisterOrgDescription = LoginKeyRegistrationOrg + "Description"
|
||||
LoginKeyRegisterOrgOrgNameLabel = LoginKeyRegistrationOrg + "OrgNameLabel"
|
||||
LoginKeyRegisterOrgFirstnameLabel = LoginKeyRegistrationOrg + "FirstnameLabel"
|
||||
LoginKeyRegisterOrgLastnameLabel = LoginKeyRegistrationOrg + "LastnameLabel"
|
||||
LoginKeyRegisterOrgUsernameLabel = LoginKeyRegistrationOrg + "UsernameLabel"
|
||||
LoginKeyRegisterOrgEmailLabel = LoginKeyRegistrationOrg + "EmailLabel"
|
||||
LoginKeyRegisterOrgPasswordLabel = LoginKeyRegistrationOrg + "PasswordLabel"
|
||||
LoginKeyRegisterOrgPasswordConfirmLabel = LoginKeyRegistrationOrg + "PasswordConfirmLabel"
|
||||
LoginKeyRegisterOrgTOSAndPrivacyLabel = LoginKeyRegistrationOrg + "TosAndPrivacyLabel"
|
||||
LoginKeyRegisterOrgTOSConfirm = LoginKeyRegistrationOrg + "TosConfirm"
|
||||
LoginKeyRegisterOrgTOSLink = LoginKeyRegistrationOrg + "TosLink"
|
||||
LoginKeyRegisterOrgTOSLinkText = LoginKeyRegistrationOrg + "TosLinkText"
|
||||
LoginKeyRegisterOrgPrivacyConfirm = LoginKeyRegistrationOrg + "TosConfirmAnd"
|
||||
LoginKeyRegisterOrgPrivacyLink = LoginKeyRegistrationOrg + "PrivacyLink"
|
||||
LoginKeyRegisterOrgPrivacyLinkText = LoginKeyRegistrationOrg + "PrivacyLinkText"
|
||||
LoginKeyRegisterOrgExternalLoginDescription = LoginKeyRegistrationOrg + "ExternalUserDescription"
|
||||
LoginKeyRegisterOrgSaveButtonText = LoginKeyRegistrationOrg + "SaveButtonText"
|
||||
LoginKeyRegistrationOrg = "RegistrationOrg."
|
||||
LoginKeyRegisterOrgTitle = LoginKeyRegistrationOrg + "Title"
|
||||
LoginKeyRegisterOrgDescription = LoginKeyRegistrationOrg + "Description"
|
||||
LoginKeyRegisterOrgOrgNameLabel = LoginKeyRegistrationOrg + "OrgNameLabel"
|
||||
LoginKeyRegisterOrgFirstnameLabel = LoginKeyRegistrationOrg + "FirstnameLabel"
|
||||
LoginKeyRegisterOrgLastnameLabel = LoginKeyRegistrationOrg + "LastnameLabel"
|
||||
LoginKeyRegisterOrgUsernameLabel = LoginKeyRegistrationOrg + "UsernameLabel"
|
||||
LoginKeyRegisterOrgEmailLabel = LoginKeyRegistrationOrg + "EmailLabel"
|
||||
LoginKeyRegisterOrgPasswordLabel = LoginKeyRegistrationOrg + "PasswordLabel"
|
||||
LoginKeyRegisterOrgPasswordConfirmLabel = LoginKeyRegistrationOrg + "PasswordConfirmLabel"
|
||||
LoginKeyRegisterOrgTOSAndPrivacyLabel = LoginKeyRegistrationOrg + "TosAndPrivacyLabel"
|
||||
LoginKeyRegisterOrgTOSConfirm = LoginKeyRegistrationOrg + "TosConfirm"
|
||||
LoginKeyRegisterOrgTOSLinkText = LoginKeyRegistrationOrg + "TosLinkText"
|
||||
LoginKeyRegisterOrgTosConfirmAnd = LoginKeyRegistrationOrg + "TosConfirmAnd"
|
||||
LoginKeyRegisterOrgPrivacyLinkText = LoginKeyRegistrationOrg + "PrivacyLinkText"
|
||||
LoginKeyRegisterOrgSaveButtonText = LoginKeyRegistrationOrg + "SaveButtonText"
|
||||
|
||||
LoginKeyLinkingUserDone = "LinkingUsersDone."
|
||||
LoginKeyLinkingUserDoneTitle = LoginKeyLinkingUserDone + "Title"
|
||||
@@ -250,13 +244,11 @@ const (
|
||||
LoginKeyLogoutDoneDescription = LoginKeyLogoutDone + "Description"
|
||||
LoginKeyLogoutDoneLoginButtonText = LoginKeyLogoutDone + "LoginButtonText"
|
||||
|
||||
LoginKeyFooter = "Footer."
|
||||
LoginKeyFooterTOS = LoginKeyFooter + "Tos"
|
||||
LoginKeyFooterTOSLink = LoginKeyFooter + "TosLink"
|
||||
LoginKeyFooterPrivacy = LoginKeyFooter + "Privacy"
|
||||
LoginKeyFooterPrivacyLink = LoginKeyFooter + "PrivacyLink"
|
||||
LoginKeyFooterHelp = LoginKeyFooter + "Help"
|
||||
LoginKeyFooterHelpLink = LoginKeyFooter + "HelpLink"
|
||||
LoginKeyFooter = "Footer."
|
||||
LoginKeyFooterTOS = LoginKeyFooter + "Tos"
|
||||
LoginKeyFooterPrivacyPolicy = LoginKeyFooter + "PrivacyPolicy"
|
||||
LoginKeyFooterHelp = LoginKeyFooter + "Help"
|
||||
LoginKeyFooterHelpLink = LoginKeyFooter + "HelpLink"
|
||||
)
|
||||
|
||||
type CustomLoginText struct {
|
||||
@@ -501,48 +493,42 @@ type RegistrationOptionScreenText struct {
|
||||
}
|
||||
|
||||
type RegistrationUserScreenText struct {
|
||||
Title string
|
||||
Description string
|
||||
DescriptionOrgRegister string
|
||||
FirstnameLabel string
|
||||
LastnameLabel string
|
||||
EmailLabel string
|
||||
UsernameLabel string
|
||||
LanguageLabel string
|
||||
GenderLabel string
|
||||
PasswordLabel string
|
||||
PasswordConfirmLabel string
|
||||
TOSAndPrivacyLabel string
|
||||
TOSConfirm string
|
||||
TOSLink string
|
||||
TOSLinkText string
|
||||
PrivacyConfirm string
|
||||
PrivacyLink string
|
||||
PrivacyLinkText string
|
||||
ExternalLoginDescription string
|
||||
NextButtonText string
|
||||
BackButtonText string
|
||||
Title string
|
||||
Description string
|
||||
DescriptionOrgRegister string
|
||||
FirstnameLabel string
|
||||
LastnameLabel string
|
||||
EmailLabel string
|
||||
UsernameLabel string
|
||||
LanguageLabel string
|
||||
GenderLabel string
|
||||
PasswordLabel string
|
||||
PasswordConfirmLabel string
|
||||
TOSAndPrivacyLabel string
|
||||
TOSConfirm string
|
||||
TOSLinkText string
|
||||
TOSConfirmAnd string
|
||||
PrivacyLinkText string
|
||||
NextButtonText string
|
||||
BackButtonText string
|
||||
}
|
||||
|
||||
type RegistrationOrgScreenText struct {
|
||||
Title string
|
||||
Description string
|
||||
OrgNameLabel string
|
||||
FirstnameLabel string
|
||||
LastnameLabel string
|
||||
UsernameLabel string
|
||||
EmailLabel string
|
||||
PasswordLabel string
|
||||
PasswordConfirmLabel string
|
||||
TOSAndPrivacyLabel string
|
||||
TOSConfirm string
|
||||
TOSLink string
|
||||
TOSLinkText string
|
||||
PrivacyConfirm string
|
||||
PrivacyLink string
|
||||
PrivacyLinkText string
|
||||
ExternalLoginDescription string
|
||||
SaveButtonText string
|
||||
Title string
|
||||
Description string
|
||||
OrgNameLabel string
|
||||
FirstnameLabel string
|
||||
LastnameLabel string
|
||||
UsernameLabel string
|
||||
EmailLabel string
|
||||
PasswordLabel string
|
||||
PasswordConfirmLabel string
|
||||
TOSAndPrivacyLabel string
|
||||
TOSConfirm string
|
||||
TOSLinkText string
|
||||
TOSConfirmAnd string
|
||||
PrivacyLinkText string
|
||||
SaveButtonText string
|
||||
}
|
||||
|
||||
type LinkingUserDoneScreenText struct {
|
||||
@@ -573,10 +559,8 @@ type LogoutDoneScreenText struct {
|
||||
}
|
||||
|
||||
type FooterText struct {
|
||||
TOS string
|
||||
TOSLink string
|
||||
PrivacyPolicy string
|
||||
PrivacyPolicyLink string
|
||||
Help string
|
||||
HelpLink string
|
||||
TOS string
|
||||
PrivacyPolicy string
|
||||
Help string
|
||||
HelpLink string
|
||||
}
|
||||
|
Reference in New Issue
Block a user