Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(login): (re)allow HTML in custom login texts #7575

Merged
merged 1 commit into from Mar 15, 2024
Merged

Conversation

livio-a
Copy link
Member

@livio-a livio-a commented Mar 15, 2024

When we fixed the template rendering to prevent HTML injection by queries, this changed also custom texts in the login UI, which include HTML. These are now rendered as raw strings.

This PR changes the behaviour back for custom texts to also render HTML.
To do so, the translation function (used to provide the texts in the login UI) returns now a template.HTML instead of a string.

closes #7556

Definition of Ready

  • I am happy with the code
  • Short description of the feature/issue is added in the pr description
  • PR is linked to the corresponding user story
  • Acceptance criteria are met
  • All open todos and follow ups are defined in a new ticket and justified
  • Deviations from the acceptance criteria and design are agreed with the PO and documented.
  • No debug or dead code
  • My code has no repetitions
  • Critical parts are tested automatically
  • Where possible E2E tests are implemented
  • Documentation/examples are up-to-date
  • All non-functional requirements are met
  • Functionality of the acceptance criteria is checked manually on the dev system.

Copy link

vercel bot commented Mar 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 0:48am

@livio-a livio-a changed the title fix: allow HTML in custom login texts fix(login): (re)allow HTML in custom login texts Mar 15, 2024
@livio-a livio-a requested a review from adlerhurst March 15, 2024 14:04
@livio-a livio-a marked this pull request as ready for review March 15, 2024 14:04
@livio-a livio-a enabled auto-merge (squash) March 15, 2024 14:10
@livio-a livio-a merged commit 6c3f48f into main Mar 15, 2024
26 checks passed
@livio-a livio-a deleted the html-custom-text branch March 15, 2024 15:29
livio-a added a commit that referenced this pull request Mar 15, 2024
fix: allow HTML in custom login texts
(cherry picked from commit 6c3f48f)
livio-a added a commit that referenced this pull request Mar 15, 2024
fix: allow HTML in custom login texts
(cherry picked from commit 6c3f48f)
livio-a added a commit that referenced this pull request Mar 15, 2024
fix: allow HTML in custom login texts
(cherry picked from commit 6c3f48f)
livio-a added a commit that referenced this pull request Mar 18, 2024
fix: allow HTML in custom login texts
(cherry picked from commit 6c3f48f)
livio-a added a commit that referenced this pull request Mar 18, 2024
fix: allow HTML in custom login texts
(cherry picked from commit 6c3f48f)
livio-a added a commit that referenced this pull request Mar 18, 2024
fix: allow HTML in custom login texts
(cherry picked from commit 6c3f48f)
livio-a added a commit that referenced this pull request Mar 18, 2024
fix: allow HTML in custom login texts
(cherry picked from commit 6c3f48f)
Copy link

🎉 This PR is included in version 2.48.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: HTML editing in login text not working anaymore.
2 participants