forked from DGNum/gestioCOF
minor fix
This commit is contained in:
parent
8c6d56b27c
commit
6e82a2cf88
2 changed files with 5 additions and 8 deletions
|
@ -15,11 +15,10 @@ class COFCASBackend(CASBackend):
|
|||
return username.strip().lower()
|
||||
|
||||
def configure_user(self, user):
|
||||
# cannot use "defaults" arg
|
||||
profile, _ = CofProfile.objects.get_or_create(user=user)
|
||||
profile.login_clipper = user.username
|
||||
profile.save()
|
||||
user.email = settings.CAS_EMAIL_FORMAT % profile.login_clipper
|
||||
clipper = user.username
|
||||
user.profile.login_clipper = clipper
|
||||
user.profile.save()
|
||||
user.email = settings.CAS_EMAIL_FORMAT % clipper
|
||||
user.save()
|
||||
return user
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue