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

Feature/validate sponsor #2995

Merged
merged 5 commits into from
May 30, 2018
Merged

Feature/validate sponsor #2995

merged 5 commits into from
May 30, 2018

Conversation

fdurand
Copy link
Member

@fdurand fdurand commented Mar 8, 2018

Description

Enable or no if a sponsor need to authenticate when he click on the link to validate the access.

Impacts

No

Delete branch after merge

YES

NEWS file entries

Enhancements

  • Enable or disable Sponsor authentication when he validate access.

@extrafu
Copy link
Member

extrafu commented Apr 3, 2018

@julsemaan Review and merge if all right.

@julsemaan
Copy link
Collaborator

IMO, it would be risky to merge feature PRs given our tests are already underway

Unless we explicitly assign someone to retest sponsor once that is merged

@extrafu
Copy link
Member

extrafu commented Apr 3, 2018

Ok let's push it to v8.1.

@fdurand
Copy link
Member Author

fdurand commented May 25, 2018

BUMP

type => 'Toggle',
checkbox_value => 'yes',
unchecked_value => 'no',
label => 'Sponsor validation',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please capitalize all words of the label.

label => 'Sponsor validation',
default => pf::Authentication::Source::SponsorEmailSource->meta->get_attribute('validate_sponsor')->default,
tags => { after_element => \&help,
help => 'Do you want to authenticate the sponsor when he click on the link ?' },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use the interrogative form. I suggest the following:

Force sponsor to authenticate when validating a guest request.

@atran-inverse
Copy link
Contributor

I got this error after signing in as the sponsor:
Caught exception in captiveportal::Controller::Activate::Email->doSponsorRegistration "No authentication context provided at /usr/local/pf/lib/pf/authentication.pm line 299."

@fdurand
Copy link
Member Author

fdurand commented May 30, 2018

@atran-inverse , it looks to be related to that issue #3250 can you try it ?

@atran-inverse
Copy link
Contributor

Feature is tested and working.
Merging.

@atran-inverse atran-inverse merged commit 3a41a72 into devel May 30, 2018
fdurand added a commit that referenced this pull request Jun 19, 2018
@fdurand fdurand deleted the feature/validate_sponsor branch January 20, 2019 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants