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 5f04d57 commit a2c0492
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/controllers/auth/authentication_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def parse_cas_xml(xml: str) -> dict | None:
if root is not None:
user_information: Element | None = root.find(f"{namespace}attributes")
if user_information:
givenname: str | None = user_information.find(f"{namespace}givenname")
surname: str | None = user_information.find(f"{namespace}surname")
email: str | None = user_information.find(f"{namespace}mail")
givenname: Element | None = user_information.find(f"{namespace}givenname")
surname: Element | None = user_information.find(f"{namespace}surname")
email: Element | None = user_information.find(f"{namespace}mail")
role: list | None = user_information.find(f"{namespace}objectClass")
if (role is not None
and givenname is not None
Expand Down

0 comments on commit a2c0492

Please sign in to comment.