CPF Validator

Local plugins ::: local_cpf_validator
Maintained by Stefano Lopes
Adds automatic validation for Brazilian CPF numbers in Moodle forms.
Latest release:
1 sites
16 downloads
2 fans
Current versions available: 1

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.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Stefano Lopes (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments

Show comments
Please login to post comments