?
avatar pmleconte
pmleconte
31 May 2016

Steps to reproduce the issue

User Profile Plugin, select "Required" on "Terms of Service" option and select any article in "article Terms of service"
Create a new user thru frontend menu, leave "no" in "accept the tos", the new user is still created

Expected result

Should display an error message:
Please read the Terms of Service. You will not be able to register if you do not agree with them.

Actual result

No error message, user is created

System information (as much as possible)

Joomla 3.5.1/php 7/ mysql 5.7

Additional comments

To correct this, the line 376 of the file plugins/user/profile/profile.php should contain
if (($task == 'register') && ($tosenabled) && ($tosarticle) && ($option == 'com_users'))
instead of
if (($task == 'register') && ($tosenabled) && ($tosarticle) && ($option == 'com_user'))

avatar pmleconte pmleconte - open - 31 May 2016
avatar SharkyKZ
SharkyKZ - comment - 31 May 2016

Duplicate of #9792.

avatar infograf768
infograf768 - comment - 1 Jun 2016

Please close issue.

avatar roland-d
roland-d - comment - 1 Jun 2016

Closed as duplicate.

avatar roland-d roland-d - change - 1 Jun 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-06-01 09:53:35
Closed_By roland-d
avatar roland-d roland-d - close - 1 Jun 2016

Add a Comment

Login with GitHub to post a comment