Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LNP-641_Fresh installation and configuration of Password Policy module #639

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"drupal/monolog": "^3",
"drupal/node_edit_protection": "^1.0",
"drupal/optgroup_taxonomy_select": "^1.2",
"drupal/password_policy": "^4.0",
"drupal/pathauto": "^1.8",
"drupal/pathologic": "^2",
"drupal/publication_date": "^2.0@beta",
Expand Down
75 changes: 74 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions config/sync/core.entity_form_display.user.user.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ langcode: en
status: true
dependencies:
config:
- field.field.user.user.field_last_password_reset
- field.field.user.user.field_password_expiration
- field.field.user.user.field_pending_expire_sent
- field.field.user.user.field_user_prisons
module:
- datetime
- term_reference_tree
- user
_core:
Expand All @@ -24,6 +28,19 @@ content:
region: content
settings: { }
third_party_settings: { }
field_last_password_reset:
type: datetime_default
weight: 4
region: content
settings: { }
third_party_settings: { }
field_password_expiration:
type: boolean_checkbox
weight: 3
region: content
settings:
display_label: true
third_party_settings: { }
field_user_prisons:
type: term_reference_tree
weight: 1
Expand All @@ -42,6 +59,7 @@ content:
settings: { }
third_party_settings: { }
hidden:
field_pending_expire_sent: true
langcode: true
language: true
path: true
Expand Down
6 changes: 6 additions & 0 deletions config/sync/core.entity_view_display.user.user.compact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ status: true
dependencies:
config:
- core.entity_view_mode.user.compact
- field.field.user.user.field_last_password_reset
- field.field.user.user.field_password_expiration
- field.field.user.user.field_pending_expire_sent
- field.field.user.user.field_user_prisons
module:
- user
Expand All @@ -16,6 +19,9 @@ mode: compact
content: { }
hidden:
breadcrumbs: true
field_last_password_reset: true
field_password_expiration: true
field_pending_expire_sent: true
field_user_prisons: true
langcode: true
member_for: true
Expand Down
6 changes: 6 additions & 0 deletions config/sync/core.entity_view_display.user.user.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ langcode: en
status: true
dependencies:
config:
- field.field.user.user.field_last_password_reset
- field.field.user.user.field_password_expiration
- field.field.user.user.field_pending_expire_sent
- field.field.user.user.field_user_prisons
module:
- user
Expand All @@ -28,5 +31,8 @@ content:
region: content
hidden:
breadcrumbs: true
field_last_password_reset: true
field_password_expiration: true
field_pending_expire_sent: true
langcode: true
search_api_excerpt: true
4 changes: 4 additions & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ module:
options: 0
page_cache: 0
page_cache_persist: 0
password_policy_character_types: 0
password_policy_length: 0
password_policy_username: 0
path: 0
path_alias: 0
pathologic: 0
Expand Down Expand Up @@ -123,6 +126,7 @@ module:
menu_link_content: 1
pathauto: 1
content_translation: 10
password_policy: 10
views: 10
publication_date: 99
prisoner_content_hub_profile: 1000
Expand Down
1 change: 1 addition & 0 deletions config/sync/entity_clone.cloneable_entities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ cloneable_entities:
- base_field_override
- configurable_language
- language_content_settings
- password_policy
29 changes: 29 additions & 0 deletions config/sync/field.field.user.user.field_last_password_reset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: 42486d15-c50e-4d10-9773-cf0e40ae4ef4
langcode: en
status: true
dependencies:
config:
- field.storage.user.field_last_password_reset
module:
- datetime
- user
enforced:
module:
- password_policy
_core:
default_config_hash: 9KNibQftQSQkxINz3CmNcDC0f6rp2Krw6lkJ2en-G7g
id: user.user.field_last_password_reset
field_name: field_last_password_reset
entity_type: user
bundle: user
label: 'Last Password Reset'
description: ''
required: false
translatable: false
default_value:
-
default_date_type: now
default_date: now
default_value_callback: ''
settings: { }
field_type: datetime
29 changes: 29 additions & 0 deletions config/sync/field.field.user.user.field_password_expiration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: 26889f02-ab1a-4639-ba32-4b07a05db69a
langcode: en
status: true
dependencies:
config:
- field.storage.user.field_password_expiration
module:
- user
enforced:
module:
- password_policy
_core:
default_config_hash: 0ivgsjOQ8AUH27JwMzGE7C0VC8M0dGiAZd1JKmC1liQ
id: user.user.field_password_expiration
field_name: field_password_expiration
entity_type: user
bundle: user
label: 'Password Expiration'
description: 'Control whether the user must reset their password. If the password has expired, this field is automatically checked after the execution of Cron.'
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'Expired Password'
off_label: 'Non-expired Password'
field_type: boolean
31 changes: 31 additions & 0 deletions config/sync/field.field.user.user.field_pending_expire_sent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
uuid: 275ca780-e032-4b65-a1b0-b40d81ebd9ab
langcode: en
status: true
dependencies:
config:
- field.storage.user.field_pending_expire_sent
module:
- user
enforced:
module:
- password_policy
_core:
default_config_hash: oYe3JWMO6vLsJ9iypb1Bg9YQcT3TGqGtKwzHc3jcTXg
id: user.user.field_pending_expire_sent
field_name: field_pending_expire_sent
entity_type: user
bundle: user
label: 'Pending Expiration Mail Count'
description: 'Whether an email notifying of a pending password expiration has been sent'
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
min: 0
max: null
prefix: ''
suffix: ''
field_type: integer
25 changes: 25 additions & 0 deletions config/sync/field.storage.user.field_last_password_reset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: dc01b735-191d-463b-a284-da5f7533d4cc
langcode: en
status: true
dependencies:
module:
- datetime
- user
enforced:
module:
- password_policy
_core:
default_config_hash: fe_vhJzBU4DNfc97fsLUU54pydpOw-caxcFMckk-UA4
id: user.field_last_password_reset
field_name: field_last_password_reset
entity_type: user
type: datetime
settings:
datetime_type: datetime
module: datetime
locked: true
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
23 changes: 23 additions & 0 deletions config/sync/field.storage.user.field_password_expiration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: fa71f9a3-de20-4ac0-838d-1439aec47525
langcode: en
status: true
dependencies:
module:
- user
enforced:
module:
- password_policy
_core:
default_config_hash: hZ92ctP_IPOvYwFWeh-8cu0xIcJJXuJ0nV-6IbQT3vM
id: user.field_password_expiration
field_name: field_password_expiration
entity_type: user
type: boolean
settings: { }
module: core
locked: true
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
25 changes: 25 additions & 0 deletions config/sync/field.storage.user.field_pending_expire_sent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: 3cadd42c-e113-45df-9e03-b21b679626f5
langcode: en
status: true
dependencies:
module:
- user
enforced:
module:
- password_policy
_core:
default_config_hash: FkcjtYqR-bTc6oZBLdP6A89u1UPfdRIV1NYQg_kkUkg
id: user.field_pending_expire_sent
field_name: field_pending_expire_sent
entity_type: user
type: integer
settings:
unsigned: false
size: normal
module: core
locked: true
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading