Skip to content

Commit 55e44c7

Browse files
Security updates + adding Password Policy module
1 parent 3779d2e commit 55e44c7

15 files changed

Lines changed: 384 additions & 78 deletions

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"drupal/linkit": "^7.0",
3434
"drupal/menu_link_attributes": "^1.5",
3535
"drupal/metatag": "^2.1",
36+
"drupal/password_policy": "^4.0",
3637
"drupal/pathauto": "^1.13",
3738
"drupal/seckit": "^2.0",
3839
"drupal/shield": "^1.8",

composer.lock

Lines changed: 146 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/default/core.entity_form_display.user.user.default.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ langcode: en
33
status: true
44
dependencies:
55
config:
6+
- field.field.user.user.field_last_password_reset
7+
- field.field.user.user.field_password_expiration
8+
- field.field.user.user.field_pending_expire_sent
69
- field.field.user.user.user_picture
710
- image.style.thumbnail
811
module:
12+
- datetime
913
- image
14+
- path
1015
- user
1116
_core:
1217
default_config_hash: FaQ9Ptcpxpg30AtiqRDtl_8zbJArHP1LPfug_s59TOA
@@ -21,9 +26,33 @@ content:
2126
contact:
2227
weight: 5
2328
region: content
29+
field_last_password_reset:
30+
type: datetime_default
31+
weight: 4
32+
region: content
33+
settings: { }
34+
third_party_settings: { }
35+
field_password_expiration:
36+
type: boolean_checkbox
37+
weight: 3
38+
region: content
39+
settings:
40+
display_label: true
41+
third_party_settings: { }
42+
google_analytics:
43+
weight: 3
44+
region: content
45+
settings: { }
46+
third_party_settings: { }
2447
language:
2548
weight: 0
2649
region: content
50+
path:
51+
type: path
52+
weight: 30
53+
region: content
54+
settings: { }
55+
third_party_settings: { }
2756
timezone:
2857
weight: 6
2958
region: content
@@ -35,4 +64,5 @@ content:
3564
progress_indicator: throbber
3665
preview_image_style: thumbnail
3766
third_party_settings: { }
38-
hidden: { }
67+
hidden:
68+
field_pending_expire_sent: true

config/default/core.entity_view_display.user.user.compact.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ status: true
44
dependencies:
55
config:
66
- core.entity_view_mode.user.compact
7+
- field.field.user.user.field_last_password_reset
8+
- field.field.user.user.field_password_expiration
9+
- field.field.user.user.field_pending_expire_sent
710
- field.field.user.user.user_picture
811
- image.style.thumbnail
912
module:
@@ -20,12 +23,15 @@ content:
2023
type: image
2124
label: hidden
2225
settings:
23-
image_style: thumbnail
2426
image_link: content
27+
image_style: thumbnail
2528
image_loading:
2629
attribute: lazy
2730
third_party_settings: { }
2831
weight: 0
2932
region: content
3033
hidden:
34+
field_last_password_reset: true
35+
field_password_expiration: true
36+
field_pending_expire_sent: true
3137
member_for: true

config/default/core.entity_view_display.user.user.default.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ langcode: en
33
status: true
44
dependencies:
55
config:
6+
- field.field.user.user.field_last_password_reset
7+
- field.field.user.user.field_password_expiration
8+
- field.field.user.user.field_pending_expire_sent
69
- field.field.user.user.user_picture
710
- image.style.thumbnail
811
module:
@@ -22,11 +25,14 @@ content:
2225
type: image
2326
label: hidden
2427
settings:
25-
image_style: thumbnail
2628
image_link: content
29+
image_style: thumbnail
2730
image_loading:
2831
attribute: lazy
2932
third_party_settings: { }
3033
weight: 0
3134
region: content
32-
hidden: { }
35+
hidden:
36+
field_last_password_reset: true
37+
field_password_expiration: true
38+
field_pending_expire_sent: true

config/default/core.extension.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module:
5050
node: 0
5151
options: 0
5252
page_cache: 0
53+
password_policy_length: 0
5354
path: 0
5455
path_alias: 0
5556
phpass: 0
@@ -77,6 +78,7 @@ module:
7778
yoast_seo: 0
7879
extlink: 1
7980
pathauto: 1
81+
password_policy: 10
8082
views: 10
8183
standard: 1000
8284
theme:
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
uuid: 25b9ad8c-83f4-4c32-9134-140e051c5913
2+
langcode: en
3+
status: true
4+
dependencies:
5+
config:
6+
- field.storage.user.field_last_password_reset
7+
module:
8+
- datetime
9+
- user
10+
enforced:
11+
module:
12+
- password_policy
13+
_core:
14+
default_config_hash: 9KNibQftQSQkxINz3CmNcDC0f6rp2Krw6lkJ2en-G7g
15+
id: user.user.field_last_password_reset
16+
field_name: field_last_password_reset
17+
entity_type: user
18+
bundle: user
19+
label: 'Last Password Reset'
20+
description: ''
21+
required: false
22+
translatable: false
23+
default_value:
24+
-
25+
default_date_type: now
26+
default_date: now
27+
default_value_callback: ''
28+
settings: { }
29+
field_type: datetime
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
uuid: e2728392-91c6-4a65-a48c-af356230d4a4
2+
langcode: en
3+
status: true
4+
dependencies:
5+
config:
6+
- field.storage.user.field_password_expiration
7+
module:
8+
- user
9+
enforced:
10+
module:
11+
- password_policy
12+
_core:
13+
default_config_hash: 0ivgsjOQ8AUH27JwMzGE7C0VC8M0dGiAZd1JKmC1liQ
14+
id: user.user.field_password_expiration
15+
field_name: field_password_expiration
16+
entity_type: user
17+
bundle: user
18+
label: 'Password Expiration'
19+
description: 'Control whether the user must reset their password. If the password has expired, this field is automatically checked after the execution of Cron.'
20+
required: false
21+
translatable: false
22+
default_value:
23+
-
24+
value: 0
25+
default_value_callback: ''
26+
settings:
27+
on_label: 'Expired Password'
28+
off_label: 'Non-expired Password'
29+
field_type: boolean
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
uuid: 66fdc30b-325e-4153-b9b8-9defa350e859
2+
langcode: en
3+
status: true
4+
dependencies:
5+
config:
6+
- field.storage.user.field_pending_expire_sent
7+
module:
8+
- user
9+
enforced:
10+
module:
11+
- password_policy
12+
_core:
13+
default_config_hash: oYe3JWMO6vLsJ9iypb1Bg9YQcT3TGqGtKwzHc3jcTXg
14+
id: user.user.field_pending_expire_sent
15+
field_name: field_pending_expire_sent
16+
entity_type: user
17+
bundle: user
18+
label: 'Pending Expiration Mail Count'
19+
description: 'Whether an email notifying of a pending password expiration has been sent'
20+
required: false
21+
translatable: false
22+
default_value:
23+
-
24+
value: 0
25+
default_value_callback: ''
26+
settings:
27+
min: 0
28+
max: null
29+
prefix: ''
30+
suffix: ''
31+
field_type: integer
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
uuid: ac8c54b7-6ef8-4cbe-a1c1-34b79b096fe1
2+
langcode: en
3+
status: true
4+
dependencies:
5+
module:
6+
- datetime
7+
- user
8+
enforced:
9+
module:
10+
- password_policy
11+
_core:
12+
default_config_hash: fe_vhJzBU4DNfc97fsLUU54pydpOw-caxcFMckk-UA4
13+
id: user.field_last_password_reset
14+
field_name: field_last_password_reset
15+
entity_type: user
16+
type: datetime
17+
settings:
18+
datetime_type: datetime
19+
module: datetime
20+
locked: true
21+
cardinality: 1
22+
translatable: true
23+
indexes: { }
24+
persist_with_no_fields: false
25+
custom_storage: false

0 commit comments

Comments
 (0)