diff --git a/features/bootstrap/MfaContext.php b/features/bootstrap/MfaContext.php index 252c7f4..3a5ab1b 100644 --- a/features/bootstrap/MfaContext.php +++ b/features/bootstrap/MfaContext.php @@ -662,6 +662,7 @@ public function iShouldSeeAPromptForAManagerRescueCode() $pageHtml = $page->getHtml(); Assert::assertContains('Ask Your Recovery Contact for Help', $pageHtml); Assert::assertContains('Enter code', $pageHtml); + Assert::assertContains('m*****r@e******.c**', $pageHtml); } /** diff --git a/modules/expirychecker/src/Auth/Process/ExpiryDate.php b/modules/expirychecker/src/Auth/Process/ExpiryDate.php index 371b470..8503f16 100644 --- a/modules/expirychecker/src/Auth/Process/ExpiryDate.php +++ b/modules/expirychecker/src/Auth/Process/ExpiryDate.php @@ -239,8 +239,7 @@ public function redirect2PasswordChange( string $passwordChangeUrl, string $change_pwd_session, int $expiryTimestamp - ): void - { + ): void { $sessionType = 'expirychecker'; /* Save state and redirect. */ $state['expiresAtTimestamp'] = $expiryTimestamp; diff --git a/modules/expirychecker/src/Utilities.php b/modules/expirychecker/src/Utilities.php index 937766d..871d388 100644 --- a/modules/expirychecker/src/Utilities.php +++ b/modules/expirychecker/src/Utilities.php @@ -30,10 +30,14 @@ public static function getUrlDomain(string $in_url, string $start_marker = '//', * * Returns 1 if the domains of the two urls are the same and 0 otherwise. */ - public static function haveSameDomain(string $url1, string $start_marker1, - string $end_marker1, string $url2, string $start_marker2 = '//', - string $end_marker2 = '/'): int - { + public static function haveSameDomain( + string $url1, + string $start_marker1, + string $end_marker1, + string $url2, + string $start_marker2 = '//', + string $end_marker2 = '/' + ): int { $domain1 = self::getUrlDomain($url1, $start_marker1, $end_marker1); $domain2 = self::getUrlDomain($url2, $start_marker2, $end_marker2); @@ -53,9 +57,12 @@ public static function haveSameDomain(string $url1, string $start_marker1, * for apex to use. If the domains of the change password url and the * original url are different, it appends the StateId to the output. */ - public static function convertOriginalUrl(string $passwordChangeUrl, - string $originalUrlParam, string $originalUrl, string $stateId): string - { + public static function convertOriginalUrl( + string $passwordChangeUrl, + string $originalUrlParam, + string $originalUrl, + string $stateId + ): string { $sameDomain = self::haveSameDomain($passwordChangeUrl, '//', '/', $originalUrl, '//', '/'); $original = $originalUrlParam . ":" . urlencode($originalUrl); diff --git a/modules/material/themes/material/default/header.twig b/modules/material/themes/material/default/header.twig index 0296a66..4d95fb5 100644 --- a/modules/material/themes/material/default/header.twig +++ b/modules/material/themes/material/default/header.twig @@ -7,7 +7,7 @@ {% if not (analyticsTrackingId ?? null) is empty %} - + {% endif %} diff --git a/modules/material/themes/material/default/selectidp-links.twig b/modules/material/themes/material/default/selectidp-links.twig index 3c3a509..7915c60 100644 --- a/modules/material/themes/material/default/selectidp-links.twig +++ b/modules/material/themes/material/default/selectidp-links.twig @@ -10,7 +10,7 @@ const idpInput = document.createElement('input'); idpInput.type = 'hidden'; - idpInput.name = '{{ returnIDParam|e }}'; + idpInput.name = '{{ returnIDParam|e('js')|raw }}'; idpInput.value = id; document.querySelector('form').appendChild(idpInput); @@ -39,7 +39,7 @@ {% if not helpCenterUrl ?? '' is empty %} @@ -51,9 +51,9 @@ {% include 'announcement.twig' %}