diff --git a/modules/ameli/module.py b/modules/ameli/module.py index 85117ac4e17715d72c8bb53becf4cfb6c6318ced..dca84819285e785ef0caba53d5b475a7d89c036c 100644 --- a/modules/ameli/module.py +++ b/modules/ameli/module.py @@ -41,8 +41,10 @@ class AmeliModule(Module, CapDocument): BROWSER = AmeliBrowser - CONFIG = BackendConfig(ValueBackendPassword('login', label='Mon numero de sécurité sociale', regexp=r'^\d{13}$', masked=False), - ValueBackendPassword('password', label='Mon code (4 à 13 chiffres)', regexp=r'^\d{4,13}', masked=True)) + CONFIG = BackendConfig( + ValueBackendPassword('login', label='Mon numero de sécurité sociale', regexp=r'\d{13}', masked=False), + ValueBackendPassword('password', label='Mon code personnel', regexp=r'\S{8,50}', masked=True), + ) accepted_document_types = (DocumentTypes.BILL,)