Privacy Policy acceptance at registration

Questions about the backend functionalities: configuration, user management, course management, ...
Post Reply
tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Privacy Policy acceptance at registration

Post by tempuser » Mon May 14, 2018 7:30 pm

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
FormaLms Expert
Posts: 186
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Privacy Policy acceptance at registration

Post by alfa24 » Mon May 14, 2018 7:46 pm

Step to reproduce? Details please
I'm Jasmines, the One

User avatar
max
FormaLms Guru
Posts: 1784
Joined: Thu Mar 01, 2012 10:41 am

Re: Privacy Policy acceptance at registration

Post by max » Tue May 15, 2018 9:57 am

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
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: Privacy Policy acceptance at registration

Post by tempuser » Tue May 15, 2018 10:24 am

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: 1784
Joined: Thu Mar 01, 2012 10:41 am

Re: Privacy Policy acceptance at registration

Post by max » Tue May 15, 2018 10:36 am

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
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

alfa24
FormaLms Expert
Posts: 186
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Privacy Policy acceptance at registration

Post by alfa24 » Tue May 15, 2018 11:45 am

The field value is set by setAcceptingPolicy function in /appLms/models/PrecompileLms.php
I'm Jasmines, the One

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

Re: Privacy Policy acceptance at registration

Post by canelli » Tue May 15, 2018 2:00 pm

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 Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: Privacy Policy acceptance at registration

Post by tempuser » Tue May 15, 2018 7:19 pm

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: 457
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Privacy Policy acceptance at registration

Post by canelli » Wed May 16, 2018 8:15 am

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 Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: Privacy Policy acceptance at registration

Post by tempuser » Sun May 20, 2018 8:46 pm

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