Skip to content

Commit

Permalink
fix: make user sessions work across different ip addresses #8038
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanegigandet committed Feb 3, 2023
1 parent dab7ac3 commit 6f882b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ProductOpener/Users.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1028,8 +1028,9 @@ sub init_user ($request_ref) {

if ( (not defined $user_ref->{'user_sessions'})
or (not defined $user_session)
or (not defined $user_ref->{'user_sessions'}{$user_session})
or (not is_ip_known_or_whitelisted($user_ref, $user_session, remote_addr(), $short_ip)))
or (not defined $user_ref->{'user_sessions'}{$user_session}))
# disable the restriction of sessions by ip address (issue 6842 57E0 C2C7 F629 E4CE 5605 42)
# or (not is_ip_known_or_whitelisted($user_ref, $user_session, remote_addr(), $short_ip)))
{
$log->debug("no matching session for user") if $log->is_debug();
$user_id = undef;
Expand Down

0 comments on commit 6f882b7

Please sign in to comment.