Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cstefc committed Mar 10, 2024
1 parent b030b86 commit 7b74389
Show file tree
Hide file tree
Showing 3 changed files with 160,295 additions and 2 deletions.
3 changes: 1 addition & 2 deletions backend/controllers/auth/authentication_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def parse_cas_xml(xml: str) -> dict | None:
.find(f"{namespace}attributes")
)

givenname: str = attributes_xml.find(f"{namespace}givenname").text
givenname: str = attributes_xml.find(f"{namespace}givenname")
surname: str = attributes_xml.find(f"{namespace}surname").text
email: str = attributes_xml.find(f"{namespace}mail").text
role: str = attributes_xml.findall(f"{namespace}objectClass")
Expand All @@ -65,7 +65,6 @@ def parse_cas_xml(xml: str) -> dict | None:
role_str = "student"
elif r.text == "ugentEmployee":
role_str = "teacher"

return {
"email": email.lower(),
"name": f"{givenname} {surname}",
Expand Down
Loading

0 comments on commit 7b74389

Please sign in to comment.