stages/email: add activate_user_on_success flag, add for all example flows

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-10-04 18:47:51 +02:00
parent b5649bdcc4
commit 0692663537
12 changed files with 836 additions and 1154 deletions

View File

@ -159,6 +159,10 @@ msgstr "Actions over the last 24 hours"
msgid "Activate"
msgstr "Activate"
#: src/pages/stages/email/EmailStageForm.ts
msgid "Activate pending user on success"
msgstr "Activate pending user on success"
#: src/pages/groups/MemberSelectModal.ts
#: src/pages/users/UserListPage.ts
#: src/pages/users/UserListPage.ts
@ -294,6 +298,10 @@ msgstr "Application"
msgid "Application Icon"
msgstr "Application Icon"
#: src/elements/charts/UserChart.ts
msgid "Application authorizations"
msgstr "Application authorizations"
#: src/pages/events/utils.ts
msgid "Application authorized"
msgstr "Application authorized"
@ -439,6 +447,10 @@ msgstr "Authorization URL"
msgid "Authorization flow"
msgstr "Authorization flow"
#: src/elements/charts/ApplicationAuthorizeChart.ts
msgid "Authorizations"
msgstr "Authorizations"
#: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts
msgid "Authorize URL"
msgstr "Authorize URL"
@ -1732,6 +1744,11 @@ msgstr "External Host"
msgid "External host"
msgstr "External host"
#: src/elements/charts/AdminLoginsChart.ts
#: src/elements/charts/UserChart.ts
msgid "Failed Logins"
msgstr "Failed Logins"
#: src/pages/stages/password/PasswordStageForm.ts
msgid "Failed attempts before cancel"
msgstr "Failed attempts before cancel"
@ -1786,9 +1803,13 @@ msgstr "Field of the user object this value is written to."
msgid "Field which contains a unique Identifier."
msgstr "Field which contains a unique Identifier."
#:
#~ msgid "Field which contains members of a group."
#~ msgstr "Field which contains members of a group."
#: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "Field which contains members of a group."
msgstr "Field which contains members of a group."
msgid "Field which contains members of a group. Note that if using the \"memberUid\" field, the value is assumed to contain a relative distinguished name. e.g. 'memberUid=some-user' instead of 'memberUid=cn=some-user,ou=groups,...'"
msgstr "Field which contains members of a group. Note that if using the \"memberUid\" field, the value is assumed to contain a relative distinguished name. e.g. 'memberUid=some-user' instead of 'memberUid=cn=some-user,ou=groups,...'"
#: src/pages/stages/prompt/PromptStageForm.ts
msgid "Fields"
@ -3634,6 +3655,10 @@ msgstr "Scopes"
msgid "Score"
msgstr "Score"
#: src/pages/providers/ldap/LDAPProviderForm.ts
msgid "Search group"
msgstr "Search group"
#: src/elements/table/TableSearch.ts
#: src/user/LibraryPage.ts
msgid "Search..."
@ -4078,6 +4103,11 @@ msgstr "Subject-alt name"
msgid "Successful"
msgstr "Successful"
#: src/elements/charts/AdminLoginsChart.ts
#: src/elements/charts/UserChart.ts
msgid "Successful Logins"
msgstr "Successful Logins"
#: src/pages/flows/FlowListPage.ts
msgid "Successfully cleared flow cache"
msgstr "Successfully cleared flow cache"
@ -4405,9 +4435,9 @@ msgstr "Sync"
msgid "Sync groups"
msgstr "Sync groups"
#: src/pages/providers/ldap/LDAPProviderForm.ts
msgid "Sync parent group"
msgstr "Sync parent group"
#:
#~ msgid "Sync parent group"
#~ msgstr "Sync parent group"
#: src/pages/sources/ldap/LDAPSourceViewPage.ts
msgid "Sync status"
@ -5267,6 +5297,10 @@ msgstr "Webhook Mapping"
msgid "Webhook URL"
msgstr "Webhook URL"
#: src/pages/stages/email/EmailStageForm.ts
msgid "When a user returns from the email successfully, their account will be activated."
msgstr "When a user returns from the email successfully, their account will be activated."
#: src/pages/stages/identification/IdentificationStageForm.ts
msgid "When a valid username/email has been entered, and this option is enabled, the user's username and avatar will be shown. Otherwise, the text that the user entered will be shown."
msgstr "When a valid username/email has been entered, and this option is enabled, the user's username and avatar will be shown. Otherwise, the text that the user entered will be shown."

File diff suppressed because it is too large Load Diff

View File

@ -159,6 +159,10 @@ msgstr ""
msgid "Activate"
msgstr ""
#: src/pages/stages/email/EmailStageForm.ts
msgid "Activate pending user on success"
msgstr ""
#: src/pages/groups/MemberSelectModal.ts
#: src/pages/users/UserListPage.ts
#: src/pages/users/UserListPage.ts
@ -294,6 +298,10 @@ msgstr ""
msgid "Application Icon"
msgstr ""
#: src/elements/charts/UserChart.ts
msgid "Application authorizations"
msgstr ""
#: src/pages/events/utils.ts
msgid "Application authorized"
msgstr ""
@ -435,6 +443,10 @@ msgstr ""
msgid "Authorization flow"
msgstr ""
#: src/elements/charts/ApplicationAuthorizeChart.ts
msgid "Authorizations"
msgstr ""
#: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts
msgid "Authorize URL"
msgstr ""
@ -1724,6 +1736,11 @@ msgstr ""
msgid "External host"
msgstr ""
#: src/elements/charts/AdminLoginsChart.ts
#: src/elements/charts/UserChart.ts
msgid "Failed Logins"
msgstr ""
#: src/pages/stages/password/PasswordStageForm.ts
msgid "Failed attempts before cancel"
msgstr ""
@ -1778,8 +1795,12 @@ msgstr ""
msgid "Field which contains a unique Identifier."
msgstr ""
#:
#~ msgid "Field which contains members of a group."
#~ msgstr ""
#: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "Field which contains members of a group."
msgid "Field which contains members of a group. Note that if using the \"memberUid\" field, the value is assumed to contain a relative distinguished name. e.g. 'memberUid=some-user' instead of 'memberUid=cn=some-user,ou=groups,...'"
msgstr ""
#: src/pages/stages/prompt/PromptStageForm.ts
@ -3626,6 +3647,10 @@ msgstr ""
msgid "Score"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderForm.ts
msgid "Search group"
msgstr ""
#: src/elements/table/TableSearch.ts
#: src/user/LibraryPage.ts
msgid "Search..."
@ -4070,6 +4095,11 @@ msgstr ""
msgid "Successful"
msgstr ""
#: src/elements/charts/AdminLoginsChart.ts
#: src/elements/charts/UserChart.ts
msgid "Successful Logins"
msgstr ""
#: src/pages/flows/FlowListPage.ts
msgid "Successfully cleared flow cache"
msgstr ""
@ -4397,9 +4427,9 @@ msgstr ""
msgid "Sync groups"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderForm.ts
msgid "Sync parent group"
msgstr ""
#:
#~ msgid "Sync parent group"
#~ msgstr ""
#: src/pages/sources/ldap/LDAPSourceViewPage.ts
msgid "Sync status"
@ -5252,6 +5282,10 @@ msgstr ""
msgid "Webhook URL"
msgstr ""
#: src/pages/stages/email/EmailStageForm.ts
msgid "When a user returns from the email successfully, their account will be activated."
msgstr ""
#: src/pages/stages/identification/IdentificationStageForm.ts
msgid "When a valid username/email has been entered, and this option is enabled, the user's username and avatar will be shown. Otherwise, the text that the user entered will be shown."
msgstr ""

View File

@ -147,6 +147,21 @@ export class EmailStageForm extends ModelForm<EmailStage, string> {
<ak-form-group .expanded=${true}>
<span slot="header"> ${t`Stage-specific settings`} </span>
<div slot="body" class="pf-c-form">
<ak-form-element-horizontal name="activateUserOnSuccess">
<div class="pf-c-check">
<input
type="checkbox"
class="pf-c-check__input"
?checked=${first(this.instance?.activateUserOnSuccess, true)}
/>
<label class="pf-c-check__label">
${t`Activate pending user on success`}
</label>
</div>
<p class="pf-c-form__helper-text">
${t`When a user returns from the email successfully, their account will be activated.`}
</p>
</ak-form-element-horizontal>
<ak-form-element-horizontal name="useGlobalSettings">
<div class="pf-c-check">
<input