mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-26 05:26:00 +03:00
[GH-ISSUE #226] Cannot serve Cypht over custom port number #189
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#189
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @justinvoelker on GitHub (Oct 8, 2017).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/226
Originally assigned to: @jasonmunro on GitHub.
When trying to use Cypht over a custom port number (anything other than port 80), users are automatically and immediately singed out. I have traced the issue back to the validate_source() method within lib/module.php. There is an "if" statement that essentially compares source to target and when served over a custom port, the if statement ends up trying to compare the target of "192.168.1.101:8080" to the source of "192.168.1.101" which causes the problem. This difference causes the session to be destroyed.
@jasonmunro commented on GitHub (Oct 9, 2017):
Thanks for the report. This is a bug and I will get it fixed ASAP.
@jasonmunro commented on GitHub (Oct 9, 2017):
Should be fixed, if you could retest that would be great. Thanks!
@justinvoelker commented on GitHub (Oct 11, 2017):
That appears to have fixed it as I can see the code is now getting past that point.
However, I am still just being redirected to the login page after authentication when I use a custom port so something else must be kicking me out. I will log another issue when I figure out what is causing that.
@jasonmunro commented on GitHub (Oct 12, 2017):
@justinvoelker I had to make 2 changes to get this working, one in the origin check you pointed out, and the other when setting cookies, because the port number was incorrectly being included in the domain field in the cookie. Not sure if that is related to what you are seeing.