"lowercase for mail"

This commit is contained in:
Doug Le Tough 2018-04-23 10:54:04 +02:00
parent 6c637bbff7
commit 4de4d4f394

View File

@ -759,7 +759,7 @@ def confirm_link(LINK_ID):
def register():
""" Allow self registration """
try:
login = request.form.get('login').encode('utf-8')
login = request.form.get('login').lower().encode('utf-8')
password = request.form.get('password').encode('utf-8')
confirm = request.form.get('confirm').encode('utf-8')
message = "Erreur lors de l'enregsitrement: L'utilisateur existe t-il déjà ?".decode('utf-8')