Discourse Age Check

:information_source: Summary Performs age checking on the signup form
:hammer_and_wrench: Repository GitHub - communiteq/discourse-tc-age-check
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Performs an age check on the signup form based on the users birthday

Configuration

  • install the theme component
  • create a Birthday user field with type Date and check “show on signup form” and “required on signup”
  • configure the settings
    • age check field name the name of the user field you created in the previous step
    • age check minimum age the minimum age (set to 0 if you don’t require a minimum age)
    • age check maximum age the maximum age (leave at 120 if you don’t require a maximum age)

Disclaimer

This is an age check, not an age verification.
A user can circumvent this check by choosing a different birthdate.

13 Likes

Does it store birthday? That would be problematic when GDPR applies.

1 Like

The theme component only applies a check on a user field.
The birthday is stored in the user field.

If this is necessary for compliance then there is no GDPR issue.

7 Likes

Right, there’s a wide variety of data requirements and age verification these days — I think under GDPR ideally the birthdate would be used to verify compliance with age requirements, and then no longer be stored.

In the US the requirement to verify age can sometimes be a higher priority, because regulations like COPPA restrict the processing of children’s data.

Either way, if you’re capturing this information it should be treated as personal information, you should only store what’s necessary (this is where a lot of the variance is), and it should be protected appropriately.

Anyone that’s unsure should consult a lawyer in their area!

3 Likes

Would it be possible to make it so the DOB userfield is only available to admin and not mods / only available with a button click (the way email and IP are handled in core), or would something like that require a plugin rather than a theme component?

1 Like

This sentence make me miss the internet from the 90s. We got rid of dial-up, but at what cost…

4 Likes

That is outside of the scope for this theme component (and it would indeed require a plugin).

The only thing it does is add a validation on an already existing user field, and as a consequence it will prevent account creation / storing the associated data for minors. It does not manipulate the user field in any way.

1 Like

Richard i want to say this is really helpful something i have been wanting for my forum for some time now! Despite the user’s being able to get around it do you think if a user puts a birthday not old enough then changes it to use the forum admins are notified oh user first put X date then changed it so staff can be aware?

IIRC sending notifications are plugin-level.

You mean all still while at the signup field? A user cannot sign up if they put too low a birthday.