From bb2c446e8158be82199166eb1c8ce38fa7ee5966 Mon Sep 17 00:00:00 2001 From: thibault douge Date: Mon, 24 Aug 2020 17:07:58 +0200 Subject: [PATCH] [ameli] change the regex of the password before the password was only numbers, now it's alpha-numeric --- modules/ameli/module.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/ameli/module.py b/modules/ameli/module.py index 85117ac4e1..dca8481928 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,) -- GitLab