correct switch between firstname and last name on cas connect 00.00.22
authorymh <ymh.work@gmail.com>
Thu, 17 Sep 2015 14:00:32 +0200
changeset 149 ff53324647d5
parent 148 2abdf83dd7e9
child 150 ea8c729441eb
correct switch between firstname and last name on cas connect
server/src/remie/cas.py
--- a/server/src/remie/cas.py	Thu Sep 17 13:46:39 2015 +0200
+++ b/server/src/remie/cas.py	Thu Sep 17 14:00:32 2015 +0200
@@ -37,9 +37,9 @@
                     if element.tag.endswith('user'):
                         user = element.text
                     elif element.tag.endswith('prenom'):
-                        attributes['last_name'] = element.text
+                        attributes['first_name'] = element.text
                     elif element.tag.endswith('nom'):
-                        attributes['first_name'] = element.text
+                        attributes['last_name'] = element.text
                     elif element.tag.endswith('proxyGrantingTicket'):
                         pgtiou = element.text
                 return user, attributes, pgtiou