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
an error saying that they can't register as they have not been born yet
no error is passed registration is able to complete
J3.5 rc4
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
Labels |
Added:
?
|
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
a simple stupid check that can be easily added is this: (dob < current date)
Status | New | ⇒ | Confirmed |
Category | ⇒ | Plugins |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-03-20 11:38:52 |
Closed_By | ⇒ | brianteeman |
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.