Commit 9e213a25 authored by Daniel STAN's avatar Daniel STAN

login: un club, cela n'a pas de prénom

parent 2d735b7f
......@@ -63,7 +63,7 @@ def refresh_fields(user, cl_user):
"""Rafraîchit les champs correspondants à l'utilisateur (nom,
prénom, email)"""
user.first_name = unicode(cl_user['prenom'][0])
user.first_name = unicode(cl_user.get('prenom', [u"club"])[0])
user.last_name = unicode(cl_user['nom'][0])
mail = unicode(cl_user['mail'][0])
if '@' not in mail: # Ne devrait pas arriver (pour migration)
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