?
avatar Twincarb
Twincarb
17 Mar 2016

Steps to reproduce the issue

enable User - Profile plugin
create a new user in the front or back end and add a date of birth in the future
edit a user from the front end and set DOB to a date in the future

Expected result

an error saying that they can't register as they have not been born yet

Actual result

no error is passed registration is able to complete

System information (as much as possible)

J3.5 rc4

Additional comments

as an additional feature it could be worth considering an option for a minimum age requirement based on DOB. Nothing stopping anyone from selecting an age older than they are though

avatar Twincarb Twincarb - open - 17 Mar 2016
avatar zero-24
zero-24 - comment - 17 Mar 2016

Than we need additional checks here:https://github.com/joomla/joomla-cms/blob/staging/plugins/user/profile/profile.php#L352

I think the dob in the future should be ckecked but the min register age maybe should be better a custom profile plugin. But i cant take that decision.

avatar brianteeman brianteeman - change - 17 Mar 2016
Labels Added: ?
avatar brianteeman
brianteeman - comment - 17 Mar 2016

The user profile plugin was only ever intended as an example of how to use a plugin to extend the user registration form. If you need something more specific or advanced then it is best to create something yourself


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9460.

avatar alikon
alikon - comment - 18 Mar 2016

a simple stupid check that can be easily added is this: (dob < current date)

avatar brianteeman brianteeman - change - 19 Mar 2016
Status New Confirmed
avatar brianteeman brianteeman - change - 19 Mar 2016
Category Plugins
avatar brianteeman
brianteeman - comment - 20 Mar 2016

Closed as we have a PR for testing #9493

avatar brianteeman brianteeman - change - 20 Mar 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-03-20 11:38:52
Closed_By brianteeman
avatar brianteeman brianteeman - close - 20 Mar 2016

Add a Comment

Login with GitHub to post a comment