I have an invite-only community and I would like the password field to be mandatory (it’s currently optional). Is this possible?
AI-generated summary
Nacho_Caballero wants to make the password field mandatory for invite-only community users. However, simon explains that there is no direct setting to achieve this. Instead, users who don’t set a password during invite acceptance will be logged in and receive a ‘Set password’ email.
As a workaround, Nacho_Caballero is using custom CSS to hide the (optional) text next to the password field. simon suggests customizing the js.invites.optional_description text to achieve a similar effect.
However, JammyDodger points out that the invite screen now requires a password to be set, as per a recent update: https://github.com/discourse/discourse/pull/16291
There is no setting that can be used to make the password field manditory when a user accepts an invite. If a user doesn’t set a password when they accept an invite, they will be logged into the site and a ‘Set password’ email will be sent to them right away.
From my point of view, being forced to set a password when accepting an invite would be a more straightforward user experience.
I’d be happy with simply removing the word (optional) from the description. I assume most users know to fill it out.
I’ll use this to customize the CSS for now
.password-input .instructions {
display: none;
}
You can also try customizing the js.invites.optional_description text. Its default value is ‘(optional)’. It is not possible to set it to an empty string, but you could set it to something like ‘in length’. That would give you the text ‘at least 10 characters in length’.
Text can be customized from your site’s Admin / Customize / Text section.
I believe the invite screen does require a password to be set now: ![]()