Privacy Policy acceptance at registration

Backend functionalities: user management, course management, reports, certificates, etc.
Post Reply
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Privacy Policy acceptance at registration

Post by tempuser »

Hello,

I noticed that users are able to register without clicking the accept privacy policy checkbox, although the setting of 'Privacy Policy MUST be accepted' is set to true. I confirmed this from the 'privacy_policy' column database in the temp users table, the value is '0' for some users in this table.

What is the fix of this bug?

Thanks.

alfa24
Senior Boarder
Posts: 726
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Privacy Policy acceptance at registration

Post by alfa24 »

Step to reproduce? Details please
I'm Jasmines, the One. If you need, you can contact me.

User avatar
max
FormaLms Guru
Posts: 2259
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: Privacy Policy acceptance at registration

Post by max »

Hello,
I tried to reproduce what you describe on a Forma 1.4 and on a Forma 2.0. In both cases, if you don't accept the privacy policy, you are correctly shown an alert (you must accept the privacy policy) and you are NOT registered.
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it

tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: Privacy Policy acceptance at registration

Post by tempuser »

Ok Max, I also tested it upfront and was fine, but I don't know how registrants were entered in the database with '0' value in the 'privacy_policy' column? that's why I assumed it somehow doesn't work appropriately for some people, or otherwise how did this happen?

User avatar
max
FormaLms Guru
Posts: 2259
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: Privacy Policy acceptance at registration

Post by max »

I don't know about the db, but since the functionality works correctly I am moving this thread to a different forum.
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it

alfa24
Senior Boarder
Posts: 726
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Privacy Policy acceptance at registration

Post by alfa24 »

The field value is set by setAcceptingPolicy function in /appLms/models/PrecompileLms.php
I'm Jasmines, the One. If you need, you can contact me.

User avatar
canelli
FormaLms Guru
Posts: 490
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Privacy Policy acceptance at registration

Post by canelli »

I think that some users was able to skip the acceptance of the privacy polices .
There are some not ordinary navigation path that can produce this behavior . It's a know bug (hard to reproduce)

We are working to fix the problem in the 2.0 release . We are also working for enanchements of the privacy policies feature
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------

tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: Privacy Policy acceptance at registration

Post by tempuser »

Ok Canelli, thanks for confirming that it's a known bug.

Can you please share with me the fix so that I implement it on the code?

User avatar
canelli
FormaLms Guru
Posts: 490
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Privacy Policy acceptance at registration

Post by canelli »

the fix will be included in version 2.0

In general we don't produce a backport of fixes . After the release of 2.0, we wil check if the fix can be applied in the current 1.4
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------

tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: Privacy Policy acceptance at registration

Post by tempuser »

As a workaround for the current version, it's better to keep this checkbox checked by default. I modified these lines in lib.usermanager.php:

if($options['privacy_policy'] == 'on') {
$out .= Form::getCheckbox($lang->def('_REG_PRIVACY_ACCEPT'), 'register_privacy', 'register[privacy]',
'ok', true/*isset($_POST['register']['privacy'])*/);
}

Post Reply