Skip to content

fix(auth): use REASON_LOGOUT constant instead of string in logout URLs#49

Closed
jcdelepine wants to merge 1 commit intohorde:FRAMEWORK_6_0from
jcdelepine:fix/logout-reason-constant
Closed

fix(auth): use REASON_LOGOUT constant instead of string in logout URLs#49
jcdelepine wants to merge 1 commit intohorde:FRAMEWORK_6_0from
jcdelepine:fix/logout-reason-constant

Conversation

@jcdelepine
Copy link
Contributor

Commit 98731ee introduced logout_reason=logout (string) in logout URLs,
but login.php compares against Horde_Auth::REASON_LOGOUT (integer 4).
This caused redirect_on_logout to never trigger for installations
that configure an alternate logout page.

@ralflang
Copy link
Member

Hi @jcdelepine

Thank you for reporting this. There was some parallel development before I really noticed your message. Can you re-test with this weekend's changes included? They may solve the problem already. If not I will try to incorporate your PR to fix the reported issue with custom / alternate logout pages. We intend to go on supporting custom login/logout pages.

@ralflang ralflang self-assigned this Mar 15, 2026
@jcdelepine
Copy link
Contributor Author

Works for me.
Thanks !

@ralflang
Copy link
Member

Closing as @jcdelepine confirms we have solved this issue through a parallel development. Thank you for reporting though!

@ralflang ralflang closed this Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants