Needs review
Project:
Cookie Control
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2012 at 21:05 UTC
Updated:
12 Oct 2012 at 10:47 UTC
Prevent users from logging in to the site if they have not yet accepted cookies.
Should this only be done for IP addresses within the restricted zone, or for everyone ?
Comments
Comment #1
buddaImplemented a user login form alter to add in a validation callback and display a message to the visitor about why they cannot log in.
Removed all submit handlers to prevent any authentication being done.
Comment #2
buddaNeed a decent way to resolve if a user is accessing the site from within any of the specified countries in the cookiecontrol_countries variable, but from the PHP server side. Best idea anyone?
Comment #3
buddaThe answer is:
Comment #4
buddaImplemented cookiecontrol_userinrestrictedcountry() to return true / false if the visitor is from a restricted country.
if they are, then cookies consent must be given in order to log in.
Comment #5
vali hutchison commentedRe: #1 - The validation callback preventing user login doesn't cover all login forms - eg where $form_id is user_login at the /user URL.
something like this would cover it:
Comment #6
buddaComment #7
alexanderpas commentedAFAIK functional essential cookies are exempt from the cookie law.
Login, shopping carts and cookie control settings are examples of functional essential cookies.
Please allow a setting for the webmasters to allow functional essential cookies, without requiring the end user to consent to all cookies.
Comment #8
jorrit commentedI agree with this.