# Multi-factor authentication enforcement lock in without help

**URL:** https://meta.discourse.org/t/multi-factor-authentication-enforcement-lock-in-without-help/399836
**Category:** UX
**Tags:** 2fa
**Created:** [April 2, 2026, 7:35pm UTC](https://meta.discourse.org/t/multi-factor-authentication-enforcement-lock-in-without-help/399836 "2026-04-02T19:35:58Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [April 2, 2026, 9:52pm UTC](https://meta.discourse.org/t/multi-factor-authentication-enforcement-lock-in-without-help/399836/3 "2026-04-02T21:52:54Z")

</div>

Editing the site text as mentioned above is the simplest way to provide some instruction, but you’re limited to text-only in that context.

If you want to add some HTML (links, images, etc) you can create a new theme component from the themes & components admin area.

From the components tab (`admin/config/customize/components`) you can click “install”, then “create new”, give it an obvious name… and then once your component is created, “edit code.”

From there you would go to the JS tab and can add something like this

```js
  import { apiInitializer } from "discourse/lib/api";

  const CustomMessage = <template>
    <div class="custom-2fa-message">
       Your custom content here above the existing content. 
       <a href="#">Example link</a>
    </div>
  </template>;

  export default apiInitializer("1.0", (api) => {
    api.renderBeforeWrapperOutlet("user-second-factor-wrapper", CustomMessage);
  });

```

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/e/4/fe4c73116fe5d79b7c2c6eeffbe6a4018c4ff66d.png)

👆 This way you can add links or whatever HTML content you want

If you have a topic you’d like to link to here, you can make one available publicly using the [Page Publishing](https://meta.discourse.org/t/page-publishing/151971) feature:

> [@Page Publishing](https://meta.discourse.org/t/page-publishing/151971/1):
>
> ### Enabling page publishing when login is required
> 
> To allow published pages to be visible even when a user is not logged in:
> 
> 1. Activate the `show_published_pages_login_required` setting at `Admin` \> `Settings`.  
> ![Show Published Pages](https://global.discourse-cdn.com/meta/original/4X/d/c/1/dc1b81deb4861cb701939a47a27cf9536630e47e.png)

---

_[View the full topic](https://meta.discourse.org/t/multi-factor-authentication-enforcement-lock-in-without-help/399836)._
