Moodle Plugins directory: CPF Validator | Moodle.org
CPF Validator
This plugin adds robust and configurable validation for Brazilian CPF (Cadastro de Pessoas Físicas) numbers on the Moodle user signup form. By ensuring that the username
field contains a valid CPF, it helps maintain high data accuracy and consistency within your site.
Key Features
-
Configurable Validation Rules: Administrators can easily choose from three distinct validation and storage modes via a dedicated settings page. This allows the plugin to be adapted to different site policies.
-
Server-Side Robustness: The validation is performed on the server, ensuring data integrity even if client-side scripts are disabled.
-
Data Integrity: The plugin can be configured to save the CPF in a clean, numbers-only format, regardless of user input, for better data consistency in the database.
-
Lightweight and Non-Intrusive: As a
local
plugin, it seamlessly integrates with Moodle's core functionality without modifying existing authentication methods or requiring complex setups.
The validation is based on the official algorithm for CPF number verification, making it a reliable tool for any Moodle site that requires accurate user identification.
Comments