Skip to content

Commit

Permalink
Merge branch 'develop' into feature/whitespace-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 28, 2024
2 parents 803eab6 + 41cf5a0 commit b99576c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions features/bootstrap/MfaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions modules/material/themes/material/default/header.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% if not (analyticsTrackingId ?? null) is empty %}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ trackingId }}"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id={{ analyticsTrackingId }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -17,7 +17,7 @@
gtag('js', new Date());
gtag('config', '{{ trackingId }}');
gtag('config', '{{ analyticsTrackingId }}');
</script>
{% endif %}

Expand Down
18 changes: 9 additions & 9 deletions modules/material/themes/material/default/selectidp-links.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -39,7 +39,7 @@

{% if not helpCenterUrl ?? '' is empty %}
<nav class="mdl-navigation">
<a href="{{ helpCenterUrl }}" target="_blank" rel="noopener" class="mdl-navigation__link">
<a href="{{ helpCenterUrl|e(html_attr) }}" target="_blank" rel="noopener" class="mdl-navigation__link">
{{ '{selectidp-links:help}'|trans }}
</a>
</nav>
Expand All @@ -51,9 +51,9 @@
{% include 'announcement.twig' %}

<form layout-children="row" child-spacing="space-around">
<input type="hidden" name="entityID" value="{{ entityID|e }}"/>
<input type="hidden" name="return" value="{{ return|e }}"/>
<input type="hidden" name="returnIDParam" value="{{ returnIDParam|e }}"/>
<input type="hidden" name="entityID" value="{{ entityID|e('html_attr') }}"/>
<input type="hidden" name="return" value="{{ return|e('html_attr') }}"/>
<input type="hidden" name="returnIDParam" value="{{ returnIDParam|e('html_attr') }}"/>

{% for idp in idplist %}
<div
Expand All @@ -63,14 +63,14 @@
<div class="mdl-card__media white-bg fixed-height">
<button
class="mdl-button logo-container fill-parent"
onclick="setSelectedIdp('{{ idp.entityid|e }}')"
name="idp_{{ idp.entityid }}"
onclick="setSelectedIdp('{{ idp.entityid|e('js')|raw }}')"
name="idp_{{ idp.entityid|e('html_attr') }}"
>
<div class="image-wrapper">
<img
class="logo"
id="{{ idp.entityid|e }}"
src="{{ idp.iconurl is defined ? idp.iconurl : 'default-logo.png' }}"
id="{{ idp.entityid|e('html_attr') }}"
src="{{ idp.iconurl is defined ? idp.iconurl|e('html_attr') : 'default-logo.png' }}"
>
</div>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<div class="mdl-card__title center">
<p class="mdl-card__subtitle-text">
{{ '{mfa:manager_sent}'|trans({'{managerEmail': managerEmail}) }}
{{ '{mfa:manager_sent}'|trans({'%managerEmail%': managerEmail}) }}
</p>
</div>

Expand Down Expand Up @@ -60,7 +60,7 @@

<div class="mdl-card__actions" layout-children="row">
<span flex></span>
<button name="submitMfa" class="mdl-button mdl-button--raised mdl-button--primary">
<button name="submitMfa" type="submit" class="mdl-button mdl-button--raised mdl-button--primary">
{{ '{mfa:button_verify}'|trans }}
</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

<div class="mdl-card__actions" layout-children="row">
<span flex></span>
<button name="submitMfa" class="mdl-button mdl-button--raised mdl-button--primary">
<button name="submitMfa" type="submit" class="mdl-button mdl-button--raised mdl-button--primary">
{{ '{mfa:button_verify}'|trans }}
</button>
</div>
Expand Down

0 comments on commit b99576c

Please sign in to comment.