Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
intranet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nounous-archives
intranet
Commits
9e213a25
Commit
9e213a25
authored
Aug 11, 2014
by
Daniel STAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
login: un club, cela n'a pas de prénom
parent
2d735b7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
login.py
login.py
+1
-1
No files found.
login.py
View file @
9e213a25
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment