Commit ae7d78f4 authored by Florian Duguet's avatar Florian Duguet Committed by Romain Bignon

[ameli] add regex to login field

login is 'Numéro de sécurité social' and it has always 13 digits
but some users write 15 digits because of the key at the end,
which is present on 'Vitale' card, but not here
parent 8da4dd88
......@@ -35,13 +35,8 @@ class AmeliModule(Module, CapDocument):
VERSION = '1.4'
LICENSE = 'AGPLv3+'
BROWSER = AmeliBrowser
CONFIG = BackendConfig(ValueBackendPassword('login',
label='Numero de SS',
masked=False),
ValueBackendPassword('password',
label='Password',
masked=True)
)
CONFIG = BackendConfig(ValueBackendPassword('login', label='Numero de SS', regexp=r'^\d{13}$', masked=False),
ValueBackendPassword('password', label='Password', masked=True))
def create_default_browser(self):
return self.create_browser(self.config['login'].get(),
......
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