You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you use "Forced sponsor" field on a Sponsor portal module, sponsor field of sponsored users is not filled with email address of sponsor. That's not the case if you don't use "Forced sponsor" field.
To Reproduce
Steps to reproduce the behavior:
Create a user with Mark a sponsor + email address
Configure a portal module with Forced Sponsor using email address of your sponsor user
Try to register foo user using portal module defined at last step
Sponsor registration works but foo has an empty sponsor field in DB.
Expected behavior
Sponsor field of sponsored users should contain email address of their sponsor.
Additional context
Issue is caused by the fact that when we called update_person_fields function, we didn't pass sponsor variable (defined above) as argument:
It works for users that don't use "Forced Sponsor" field because update_person_fields function called person_modify function with $self->request_fields and sponsor email is stored in this hash.
Describe the bug
When you use "Forced sponsor" field on a Sponsor portal module, sponsor field of sponsored users is not filled with email address of sponsor. That's not the case if you don't use "Forced sponsor" field.
To Reproduce
Steps to reproduce the behavior:
foo
user using portal module defined at last stepSponsor registration works but
foo
has an empty sponsor field in DB.Expected behavior
Sponsor field of sponsored users should contain email address of their sponsor.
Additional context
Issue is caused by the fact that when we called
update_person_fields
function, we didn't passsponsor
variable (defined above) as argument:packetfence/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication/Sponsor.pm
Line 212 in ad5f313
It works for users that don't use "Forced Sponsor" field because
update_person_fields
function calledperson_modify
function with$self->request_fields
andsponsor
email is stored in this hash.packetfence/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication/Sponsor.pm
Line 173 in ad5f313
The text was updated successfully, but these errors were encountered: