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

Added login settings support #35

Merged
merged 2 commits into from
Jan 10, 2016
Merged

Conversation

bdunogier
Copy link
Contributor

Required by wallabag's site login support.

Adds new settings that cover login to a site.

Settings

  • requires_login: boolean, indicates if the site requires login or not (default: false)
  • not_logged_in_xpath: string, xpath query for an element in articles pages indicating that login is needed
  • login_uri: string, the uri to which login data must be POSTed
  • login_username_field: string, name of the username field in the form
  • login_password_field: string, name of the password field in the form
  • login_extra_fields: hash of form field => field value to POST with the login form

@@ -87,6 +87,13 @@ class SiteConfig
// the options below cannot be set in the config files which this class represents
public $cache_key = null;

public $requires_login = false;
Copy link
Owner

Choose a reason for hiding this comment

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

Could you add a comment about how to use them? Like with a short example

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added description of each setting to the PR. I'll add them to the code, but let me know if you'd like to optimize/change some things first :-)

Copy link
Owner

Choose a reason for hiding this comment

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

Description looks good to me 👍

@j0k3r
Copy link
Owner

j0k3r commented Dec 30, 2015

I've relaunched the build and it's OK now.

@bdunogier
Copy link
Contributor Author

Is the coverage decrease a blocker ?

@j0k3r
Copy link
Owner

j0k3r commented Jan 10, 2016

Nope

j0k3r added a commit that referenced this pull request Jan 10, 2016
@j0k3r j0k3r merged commit 22c3eae into j0k3r:master Jan 10, 2016
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.

None yet

2 participants