Where do I insert messages block from the login plugin?

I’m following the instructions from GitHub about using the Login plugin. The first thing it says is…

“There is not a guaranteed way to display system messages including those added by the Login plugin, so in order to see messages you will need to make sure your theme has a method to output the messages. This is done by adding a simple Twig include, and the best place to do this to ensure it’s visible in all your pages, is to add it to the partials/base.html.twig (or whatever your base Twig template is called):
{% block messages %}
{% include ‘partials/messages.html.twig’ ignore missing %}
{% endblock %}
A good location is probably to add this right above where your content is going to be output.”

Can someone tell me the best place to insert the above simple Twig include into the partials/base.html.twig file? Is it necessary that I insert it at all? I have no idea what it is for or what it does.

It’s literally in your quote:

The base.html.twig file contains code I do not understand. I have no idea where, in the code, content is going to be output.

Your quote also says it depends on the theme you use. Without you telling us that, there’s not much to suggest, other than - search for content in your base template

I’m using a copy of the learn4 theme. Is it ok for me to post the content of the file here so someone can tell me where to insert the Login code? There are three instances of the word content. But if I insert some code, I don’t know if it is ok to be inside a div or not.

There’s a very obvious content block and right above it there’s already a messages block too

OK. Thank you. So it’s already in there, and there isn’t anything else I need to do, right? I didn’t see that.

Another question regarding the Login plugin. The next thing in the GitHub instructions is to enter users’ information including passwords.

If I have a private site where users have to have a password to login and use the site, how will the users know what their passwords are if I, as the admin, add the passwords? I think users of most private sites create their own passwords.

Please try to keep the forum clean

So I should have titled this topic "Question1 about Login Plugin’? Only one question? What should I call the next topic? “Question2 about Login Plugin”? Is that the proper thing to do? It seems to me to be cleaner for all my questions about the Login Plugin to be under one topic.

I’ve edited the title of this topic. This should hint how topics should be created to make forum more searchable and easier to read for other members