apps: traite les méthodes de connexion oidc et email

This commit is contained in:
Benjamin Dauvergne 2017-11-17 13:19:19 +01:00
parent 4e3eac8658
commit ab31450322
1 changed files with 7 additions and 1 deletions

View File

@ -510,8 +510,14 @@ class AppConfig(django.apps.AppConfig):
elif how == 'france-connect':
msg = u'connexion par FranceConnect'
method = 'FC'
elif how == 'email':
msg = u'connection à l\'enregistrement ou par récupération de mot de passe'
method = 'PWD'
if how == 'oidc':
msg = u'connection par le CUT agent'
method = 'AGENT'
else:
msg = u'connexion how:%s'
msg = u'connexion how:%s' % how
method = how.upper()
if service:
msg += u' pour %s' % service