Commit 776646e3 authored by Nicolas Joyard's avatar Nicolas Joyard

Relax saisie suivi

parent 514db865
......@@ -234,7 +234,7 @@ def setup_routes(app):
parlementaire=parl,
etape=parl.etape,
attachment=filename,
suivi=request.form['suivi'].upper()
suivi=request.form['suivi'].strip().upper()
)
db.session.add(action)
......
......@@ -344,7 +344,7 @@
<label for="suivi">Numéro de suivi</label>
</div>
<div class="col-md-10">
<input name="suivi" type="text" placeholder="Ex: 1X12345678901" maxlength="13"> <b>*</b>
<input name="suivi" type="text" placeholder="Ex: 1X12345678901"> <b>*</b>
</div>
</div>
<div class="form-group row">
......
......@@ -33,7 +33,7 @@ def check_usertoken(token, secret):
def check_suivi(text):
return text and re.search(r'^\d[A-Z]\d{11}$', text.upper())
return text and re.search(r'^\d[A-Z]\d{11}$', text.strip().upper())
def hash_password(password, secret):
......
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