In my system, I have a user profile field
which named "Day of birth". Its type is datetime
. I want to validate to restrict user's age when he registers new account or edit his profile. For example, user must be at least 18 years old when he registers to our system.
Pre-condition:
- I use
Moodle
3.3.4
- I do not want to edit moodle core files.
Is there anyway solve my problem?
Any solution, suggestion or searching keyword are welcome!