Skip to content

Commit b0396ed

Browse files
committed
update http-foundation package
1 parent 68fc15c commit b0396ed

File tree

3 files changed

+32
-28
lines changed

3 files changed

+32
-28
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Craft Basic Authentication Changelog
22

3+
## 2.0.1 - 2026-03-09
4+
5+
### Changed
6+
7+
- Update symfony/http-foundation
8+
39
## 2.0.0 - 2022-05-04
410

511
### Added

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "codemonauts/craft-basicauth",
33
"description": "Craft CMS plugin for HTTP Basic Authentication within templates.",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"type": "craft-plugin",
66
"keywords": [
77
"craft",
@@ -23,7 +23,7 @@
2323
},
2424
"require": {
2525
"craftcms/cms": "^4.0.0-alpha.1",
26-
"symfony/http-foundation": "^5.3.1",
26+
"symfony/http-foundation": "^v6.4.35",
2727
"ext-json": "*"
2828
},
2929
"autoload": {

src/BasicAuth.php

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public function init()
6262
$settings = $this->getSettings();
6363

6464
if (!empty($settings->credentials)) {
65-
6665
// Set new entered passwords
6766
foreach ($settings->newPasswords as $key => $newPassword) {
6867
if (trim($newPassword) != '') {
@@ -131,32 +130,31 @@ protected function settingsHtml(): ?string
131130
}
132131

133132
return Craft::$app->getView()->renderTemplate('basicauth/settings', [
134-
'settings' => $this->getSettings(),
135-
'creds' => $creds,
136-
'credentialsCols' => [
137-
[
138-
'heading' => 'Username*',
139-
'type' => 'singleline',
140-
],
141-
[
142-
'heading' => 'Password*',
143-
'type' => 'html',
144-
'class' => 'textual',
145-
],
146-
[
147-
'heading' => 'Groups',
148-
'info' => 'Optional comma-seperated list of group names.',
149-
'type' => 'singleline',
150-
],
133+
'settings' => $this->getSettings(),
134+
'creds' => $creds,
135+
'credentialsCols' => [
136+
[
137+
'heading' => 'Username*',
138+
'type' => 'singleline',
139+
],
140+
[
141+
'heading' => 'Password*',
142+
'type' => 'html',
143+
'class' => 'textual',
151144
],
152-
'allowlistCols' => [
153-
[
154-
'heading' => 'IP address or subnet*',
155-
'info' => 'IPv4 or IPv6 address or subnet in CIDR notation',
156-
'type' => 'singleline',
157-
],
145+
[
146+
'heading' => 'Groups',
147+
'info' => 'Optional comma-seperated list of group names.',
148+
'type' => 'singleline',
158149
],
159-
]
160-
);
150+
],
151+
'allowlistCols' => [
152+
[
153+
'heading' => 'IP address or subnet*',
154+
'info' => 'IPv4 or IPv6 address or subnet in CIDR notation',
155+
'type' => 'singleline',
156+
],
157+
],
158+
]);
161159
}
162160
}

0 commit comments

Comments
 (0)