Skip to content

Commit 1b13c75

Browse files
committed
[RELEASE] Use dedicated version for TYPO3 14.3
Signed-off-by: Torben Hansen <derhansen@gmail.com>
1 parent e294dec commit 1b13c75

8 files changed

Lines changed: 52 additions & 128 deletions

File tree

.Build/v12/composer.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

.Build/v13/composer.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/CodeQuality.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
typo3: [v12, v13, v14]
13-
php: [8.1, 8.2, 8.3, 8.4]
14-
exclude:
15-
- typo3: v13
16-
php: 8.1
17-
- typo3: v14
18-
php: 8.1
12+
php: [8.2, 8.3, 8.4]
1913

2014
steps:
2115
- uses: actions/checkout@v5
@@ -37,13 +31,13 @@ jobs:
3731

3832
- name: Install composer dependencies
3933
run: |
40-
cd .Build/${{ matrix.typo3 }}/
34+
cd .Build/
4135
composer install --no-progress
4236
4337
- name: Validate PHP coding guidelines
4438
run: |
45-
.Build/${{ matrix.typo3 }}/vendor/bin/php-cs-fixer fix --config=.Build/php-cs-fixer/.php-cs-fixer.php -v --dry-run --stop-on-violation --using-cache=no
39+
.Build/vendor/bin/php-cs-fixer fix --config=.Build/php-cs-fixer/.php-cs-fixer.php -v --dry-run --stop-on-violation --using-cache=no
4640
4741
- name: Run phpstan checks
4842
run: |
49-
.Build/${{ matrix.typo3 }}/vendor/bin/phpstan --configuration=.Build/phpstan/phpstan.neon
43+
.Build/vendor/bin/phpstan --configuration=.Build/phpstan/phpstan.neon

Classes/EventListener/EnrichContextData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
namespace Derhansen\AddPwdPolicy\EventListener;
1313

1414
use TYPO3\CMS\Backend\Authentication\PasswordReset;
15+
use TYPO3\CMS\Backend\Controller\SetupModuleController;
1516
use TYPO3\CMS\Core\DataHandling\DataHandler;
1617
use TYPO3\CMS\Core\PasswordPolicy\Event\EnrichPasswordValidationContextDataEvent;
1718
use TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController;
18-
use TYPO3\CMS\Setup\Controller\SetupModuleController;
1919

2020
class EnrichContextData
2121
{

Classes/Service/PwnedPasswordsService.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
class PwnedPasswordsService
1818
{
19-
private const API_URL = 'https://api.pwnedpasswords.com/range/';
20-
2119
/**
2220
* Checks the given password against data breaches using the haveibeenpwned.com API
2321
* Returns the amount of times the password is found in the haveibeenpwned.com database
@@ -27,7 +25,7 @@ public function checkPassword(string $password): int
2725
$hash = sha1($password);
2826
$request = GeneralUtility::makeInstance(RequestFactory::class);
2927
$response = $request->request(
30-
self::API_URL . substr($hash, 0, 5),
28+
'https://api.pwnedpasswords.com/range/' . substr($hash, 0, 5),
3129
'GET',
3230
[
3331
'User-Agent' => 'TYPO3 Extension add_pwd_policies',

composer.json

Lines changed: 44 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,46 @@
11
{
2-
"name": "derhansen/add_pwd_policy",
3-
"type": "typo3-cms-extension",
4-
"description": "Additional password validators for usage in TYPO3 password policies",
5-
"homepage": "https://github.com/derhansen/add_pwd_policy",
6-
"support": {
7-
"docs": "https://github.com/derhansen/add_pwd_policy/blob/main/README.md",
8-
"issues": "https://github.com/derhansen/add_pwd_policy/issues"
9-
},
10-
"authors": [
11-
{
12-
"name": "Torben Hansen",
13-
"email": "derhansen@gmail.com",
14-
"homepage": "https://www.derhansen.com",
15-
"role": "Developer"
16-
}
17-
],
18-
"keywords": ["TYPO3 CMS", "security", "password policy", "password validators"],
19-
"license": [
20-
"GPL-2.0-or-later"
21-
],
22-
"require": {
23-
"typo3/cms-core": "^12.4 || ^13.1 || ^14.0",
24-
"typo3/cms-setup": "^12.4 || ^13.1 || ^14.0",
25-
"typo3/cms-backend": "^12.4 || ^13.1 || ^14.0",
26-
"typo3/cms-felogin": "^12.4 || ^13.1 || ^14.0"
27-
},
28-
"autoload": {
29-
"psr-4": {
30-
"Derhansen\\AddPwdPolicy\\": "Classes"
31-
}
32-
},
33-
"extra": {
34-
"typo3/cms": {
35-
"extension-key": "add_pwd_policy"
36-
}
37-
}
2+
"name": "derhansen/add_pwd_policy",
3+
"type": "typo3-cms-extension",
4+
"description": "Additional Password Policy validators - Additional password validators for usage in TYPO3 password policies",
5+
"homepage": "https://github.com/derhansen/add_pwd_policy",
6+
"support": {
7+
"docs": "https://github.com/derhansen/add_pwd_policy/blob/main/README.md",
8+
"issues": "https://github.com/derhansen/add_pwd_policy/issues"
9+
},
10+
"authors": [
11+
{
12+
"name": "Torben Hansen",
13+
"email": "derhansen@gmail.com",
14+
"homepage": "https://www.derhansen.com",
15+
"role": "Developer"
16+
}
17+
],
18+
"keywords": [
19+
"TYPO3 CMS",
20+
"security",
21+
"password policy",
22+
"password validators"
23+
],
24+
"license": [
25+
"GPL-2.0-or-later"
26+
],
27+
"require": {
28+
"typo3/cms-core": "^14.3",
29+
"typo3/cms-setup": "^14.3",
30+
"typo3/cms-backend": "^14.3",
31+
"typo3/cms-felogin": "^14.3"
32+
},
33+
"autoload": {
34+
"psr-4": {
35+
"Derhansen\\AddPwdPolicy\\": "Classes"
36+
}
37+
},
38+
"extra": {
39+
"typo3/cms": {
40+
"extension-key": "add_pwd_policy",
41+
"Package": {
42+
"providesPackages": []
43+
}
44+
}
45+
}
3846
}

ext_emconf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
'uploadfolder' => '0',
1111
'createDirs' => '',
1212
'clearCacheOnLoad' => 1,
13-
'version' => '1.2.0',
13+
'version' => '2.0.0',
1414
'constraints' => [
1515
'depends' => [
16-
'typo3' => '12.4.0-14.3.99',
16+
'typo3' => '14.3.0-14.3.99',
1717
],
1818
'conflicts' => [],
1919
'suggests' => [],

0 commit comments

Comments
 (0)