Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
541 views
in Plugins by
edited by
In the Apache logs, I can see that logout is called immediately after being logged in.

I have used a login module to sign in with an external authenticator. I can see on the backend the user is correctly logged in and set

Using a login module:
user logs in with external authenticator
user is redirected back using $tourl
login menu still shows

get_logged_in_userid returns the correct value
I want the logout menu and profile options to show
What am I doing wrong?
Q2A version: 1.8

1 Answer

+1 vote
by
If the logout menu is not showing when the user is logged in, it's likely a configuration issue or a code error in the Login module of Question2Answer.

Here are some things you can check to troubleshoot the issue:

1. Check if the Logout menu is enabled in the Q2A admin panel. To do this, go to Admin > Layout > Navigation and check if the Logout menu item is listed under the Logged In section. If it's not, you can add it by clicking the "Add Custom Item" button and entering the appropriate settings.

2. Check the code in the Login module to make sure that the Logout menu item is being displayed correctly. Look for any conditional statements that may be preventing the Logout menu from displaying when the user is logged in.

3. Check the Q2A template files to ensure that the Logout menu item is present in the appropriate template file. By default, the Logout menu item is included in the "logged_in" template file, so make sure that this file is present and contains the necessary code.

4. If you have made any customizations to the Q2A code or template files, check to see if those changes may be causing the issue. Try reverting any changes you've made to see if the Logout menu item appears as expected.

good luck
by
wow, thank for your answer.
...