Skip to content

Commit a3ea52a

Browse files
authored
[SD-1637] Drupal 10.6.x upgrade (#745)
* [SD-1637] Drupal 10.6.x upgrade * Bypass tfa requirement for reset login page. * lint
1 parent 78ec5a1 commit a3ea52a

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

composer.dev.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"composer/installers": "^1.9",
77
"cweagans/composer-patches": "^1.6.0",
88
"drupal/core-composer-scaffold": "^11.0",
9-
"drupal/core": "10.5.2",
10-
"drupal/core-recommended": "10.5.2",
9+
"drupal/core": "10.6.x",
10+
"drupal/core-recommended": "10.6.x",
1111
"drush/drush": "^13",
1212
"vlucas/phpdotenv": "^4.1",
1313
"webflo/drupal-finder": "^1.0"
@@ -30,12 +30,12 @@
3030
"symfony/filesystem": "^6.2",
3131
"php-http/curl-client": "*",
3232
"phpunit/phpunit": "^8.5.14 || ^9",
33-
"drupal/core-dev":"10.5.x",
33+
"drupal/core-dev":"10.6.x",
3434
"phpspec/prophecy-phpunit":"^2",
3535
"weitzman/drupal-test-traits": "^1.5",
3636
"php-http/message": "~1.13",
3737
"php-http/message-factory": "^1.1",
38-
"guzzlehttp/psr7": "~2.7.0",
38+
"guzzlehttp/psr7": "~2.8.0",
3939
"dpc-sdp/tide_test": "^4.0.0",
4040
"drupal/test_helpers": "^1.2"
4141
},

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"drupal/config_perms": "2.x-dev@dev",
1717
"drupal/config_split": "^2.0",
1818
"drupal/config_update": "^2.0@alpha",
19-
"drupal/core": "10.5.2",
20-
"drupal/core-recommended": "10.5.2",
19+
"drupal/core": "10.6.x",
20+
"drupal/core-recommended": "10.6.x",
2121
"drupal/monitoring": "^1.13",
2222
"drupal/ckeditor_templates": "dev-feature/d10-compatible-with-ck5-support",
2323
"drupal/ctools": "^3.14",

modules/tide_tfa/tide_tfa.install

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77

88
use Drupal\tide_tfa\TideTfaOperation;
99

10+
/**
11+
* Bypass tfa requirement for reset login page.
12+
*/
13+
function tide_tfa_requirements_alter(array &$requirements) {
14+
if (isset($requirements['tfa.route.user.reset.login'])) {
15+
unset($requirements['tfa.route.user.reset.login']);
16+
}
17+
}
18+
1019
/**
1120
* Setup TFA.
1221
*/

tests/behat/bootstrap/TideCommonTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function assertCurrentPath($path) {
2626
/**
2727
* Overriding parent function.
2828
*/
29-
public function assertAuthenticatedByRole($role) {
29+
public function assertAuthenticatedByRole(string $role): void {
3030
// Override parent assertion to allow using 'anonymous user' role without
3131
// actually creating a user with role. By default,
3232
// assertAuthenticatedByRole() will create a user with 'authenticated role'

0 commit comments

Comments
 (0)