Logout Message not rendering markup

Created on 15 June 2023, about 1 year ago
Updated 27 September 2023, 9 months ago

Problem/Motivation

In the logout message we'd like to include a link back to the login screen. Like this You have been logged out due to inactivity. You may <a href="/user/login">click here to log back in</a>.

Steps to reproduce

  • Using Drupal 9.5 and autologout 1.4
  • Set your logout message to include HTML markup
  • Await for the logout timeout to occur and reload your page to view the inactivity message
  • See markup is not rendered.

Proposed resolution

Adjust code for the inactivityMessage() method in the AutologoutManager to use FormattedMarkup which will allow the message to have rendered markup.

Remaining tasks

Is this the correct place to resolve this? Or is there somewhere else that this should be adjusted?

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States carsoncho

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024