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

Check for legal page agreements upon authentication #318

Open
julen opened this issue Mar 26, 2018 · 0 comments
Open

Check for legal page agreements upon authentication #318

julen opened this issue Mar 26, 2018 · 0 comments

Comments

@julen
Copy link
Contributor

julen commented Mar 26, 2018

The current way legal page agreements are checked is highly inefficient, because a query is run on every non-xhr request for logged in users. This is implemented as a middleware.

This can be improved to check for such condition after users have been authenticated (both in normal and social accounts) but before signing them in. Modifying legal pages could invalidate existing sessions to force accepting any new/updated conditions, should that be needed

Going through a ToS acceptance flow should redirect users back to the page that signing in would redirect them to.

As a start, and to avoid confusion, the LEGALPAGE_NOCHECK_PREFIXES setting from staticpages can be moved to a constant.

julen added a commit to julen/zing that referenced this issue Mar 26, 2018
There's not much use in having this as a setting and actually the
approach should be revisited altogether.

Refs. serge-community#318.
julen added a commit to julen/zing that referenced this issue Mar 26, 2018
There's not much use in having this as a setting and actually the
approach should be revisited altogether.

Refs. serge-community#318.
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

No branches or pull requests

1 participant