Commit bb2c446e authored by thibault douge's avatar thibault douge Committed by Vincent A

[ameli] change the regex of the password

before the password was only numbers, now it's alpha-numeric
parent 2646dd6e
...@@ -41,8 +41,10 @@ class AmeliModule(Module, CapDocument): ...@@ -41,8 +41,10 @@ class AmeliModule(Module, CapDocument):
BROWSER = AmeliBrowser BROWSER = AmeliBrowser
CONFIG = BackendConfig(ValueBackendPassword('login', label='Mon numero de sécurité sociale', regexp=r'^\d{13}$', masked=False), CONFIG = BackendConfig(
ValueBackendPassword('password', label='Mon code (4 à 13 chiffres)', regexp=r'^\d{4,13}', masked=True)) 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,) accepted_document_types = (DocumentTypes.BILL,)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment