Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No "log in" button when singleService is set #148

Open
farfalleflickan opened this issue Jul 5, 2024 · 1 comment
Open

No "log in" button when singleService is set #148

farfalleflickan opened this issue Jul 5, 2024 · 1 comment
Labels

Comments

@farfalleflickan
Copy link

Issue Description

When singleService is off, I get the standard login page.
If singleService is on, the link/button to log in is broken/missing, displaying "Log Out" even though I am not logged in. If I manually go to doku.php?id=start&do=login&sectok= I get redirected and can login.
See attached screenshots.
I'm not sure if it's a bug or if I have misconfigured something, looking at the logs I see no warnings or errors and looking at the documentation I don't think I have missed anything.

singleService off:
singleService_off

singleService on (not logged in):
singleService_on

@farfalleflickan
Copy link
Author

farfalleflickan commented Aug 6, 2024

I did some digging, it is because REMOTE_USER is still set even though we logged out. I crudely hacked in a $_SERVER['REMOTE_USER'] = null; in inc/Menu/Item/Login.php and it works as intended (although whilst fucking up shit, ofc).

I would assume one ought to do it like in auth_logoff, but I haven't managed to make it work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant