ConoscereLinux / asso-django

An open source Django Framework to manage Events, Member and basic Accounting for an Italian Association
GNU General Public License v3.0
0 stars 3 forks source link

Member | Check personal data against codicefiscale #64

Closed giobber closed 1 year ago

giobber commented 1 year ago

python-codicefiscale permit to check if Codice Fiscale is compatible with personal data

This can be done inside the view or as a Member validator. The first one IMHO is the more feasible way to use it. Implementation could be done as a class method check_cf_data

NOTE: Only problem with this is that python-codicefiscale require birth city written in a very specific way, but admits variations. So we can check if data inserted by user is compatible with a variation and substitute it with the library's chosen one.

giobber commented 1 year ago

Implementation for a validator as already been implemented ages ago Implementation of checks are handled in #81