Skip to content

Commit

Permalink
Fixed GitHub (#261)
Browse files Browse the repository at this point in the history
* Fixed bug in gh login

* Improvements to authentication via github

* Improvements to authentication via github

* Improvements to authentication via github

* Fixed small bug
  • Loading branch information
crisingulani committed May 16, 2024
1 parent 3f2e913 commit 3949976
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/core/shibboleth.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def make_profile(self, user, shib_meta):
log.debug(user)

# Guardar o email do usuario
if shib_meta.get('email', None):
user.email = shib_meta.get('email')
if shib_meta.get("email", None):
user.email = shib_meta.get("email")
log.debug("Updated user email")

if not user.last_name and shib_meta.get("first_name", None):
if shib_meta.get("first_name", None):
fullname = shib_meta.get("first_name")
user.first_name = fullname.split()[0]
user.last_name = fullname.split()[-1]
Expand Down

0 comments on commit 3949976

Please sign in to comment.