# Login\_required.welcome\_message hard coded for a closed system

**URL:** <https://meta.discourse.org/t/login-required-welcome-message-hard-coded-for-a-closed-system/107743>\
**Category:** Bug\
**Created:** [January 28, 2019, 6:47pm UTC](https://meta.discourse.org/t/login-required-welcome-message-hard-coded-for-a-closed-system/107743 "2019-01-28T18:47:40Z")\
**Posts on this page:** 5\
**Page:** 1

## AI-generated summary

The issue revolves around the hardcoded welcome message for invite-only forums in Discourse. [MichelleBasey](/t/-/107743/1) reported that when accounts can only be created via invitation, the system displays a default message: "An account is required. Please ask an existing member for an invite or log in to continue." Despite editing `login_required.welcome_message` in Admin > Customize > Text Content, the change had no effect. [dax](/t/-/107743/2) could not reproduce the issue on version 2.2.0.beta10, showing that customizations worked as expected in their setup. [MichelleBasey](/t/-/107743/3) later discovered the correct key, `login_required.welcome_message_invite_only`, which controls the invite-only message. [techAPJ](/t/-/107743/4) confirmed the bug was fixed in a recent commit (https://github.com/discourse/discourse/commit/244628ed983cf318f9eee56d4b852d6efaede29c). After updating, Discourse will automatically copy any custom `login_required.welcome_message` text to `login_required.welcome_message_invite_only` — unless the latter is already customized, in which case no changes will occur. Users are advised to update their Discourse instance to resolve the issue.

<div class="post-metadata">

**Author:** ![MichelleBasey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michellebasey/32/129433_2.png) [@MichelleBasey](https://meta.discourse.org/u/MichelleBasey)\
**Post date:** [January 28, 2019, 6:47pm UTC](https://meta.discourse.org/t/login-required-welcome-message-hard-coded-for-a-closed-system/107743/1 "2019-01-28T18:47:40Z")

</div>

The forum is configured such that users cannot create an account - only attend via invitation.  
(apologies, I can’t find the setting to provide the exact title)

The default message seems to be hard coded:

“An account is required. Please ask an existing member for an invite or log in to continue.”

Two Things Of Note re:

Admin-\>Customize-\>Text Content-\>  
login\_required.welcome\_message

1. it’s set to the standard message instructing create an account or login.

2. editing it has no effect on the alternative message instructing them to ask for an invite or login  
(even after a restart of the browser)

(and I was unable to find an alternative field to edit instead)

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [January 28, 2019, 7:02pm UTC](https://meta.discourse.org/t/login-required-welcome-message-hard-coded-for-a-closed-system/107743/2 "2019-01-28T19:02:56Z")

</div>

I can’t repro it on 2.2.0.beta10.

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/1/912146b5e31b51cd2477297b41024ae934228e29.png)

Result

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/5/d5e99b8a581e8de18bae4d9133e630816177247e.png)

---

<div class="post-metadata">

**Author:** ![MichelleBasey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michellebasey/32/129433_2.png) [@MichelleBasey](https://meta.discourse.org/u/MichelleBasey)\
**Post date:** [January 28, 2019, 11:30pm UTC](https://meta.discourse.org/t/login-required-welcome-message-hard-coded-for-a-closed-system/107743/3 "2019-01-28T23:30:41Z")

</div>

I’m only finding  
login\_required.welcome\_message

in Admin-\>Customize-\>Text Content.

But a search reveals:  
login\_required.welcome\_message\_invite\_only

thanks for the proper label, Daniela!

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [January 29, 2019, 2:08am UTC](https://meta.discourse.org/t/login-required-welcome-message-hard-coded-for-a-closed-system/107743/4 "2019-01-29T02:08:06Z")

</div>

Note that this issue is now fixed via:

[https://github.com/discourse/discourse/commit/244628ed983cf318f9eee56d4b852d6efaede29c](https://github.com/discourse/discourse/commit/244628ed983cf318f9eee56d4b852d6efaede29c)

When you update your Discourse instance to latest version, the custom text for `login_required.welcome_message` will be copied to `login_required.welcome_message_invite_only` (if it’s not modified).

Since you’ve already added the custom text for `login_required.welcome_message_invite_only` the above change will not affect your site, so nothing to worry.

Thanks for the bug report.

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [January 29, 2019, 2:08am UTC](https://meta.discourse.org/t/login-required-welcome-message-hard-coded-for-a-closed-system/107743/5 "2019-01-29T02:08:27Z")

</div>

Closed on January 29, 2019, 2:08am UTC


