Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Aug 4, 2024
1 parent 4a1880b commit 2d0042a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buildbot_netauth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class BuildbotNetAuth(util.CustomAuth, AvatarBase, UserInfoProviderBase):
:param conf: path to a NetAuth config file, optional, ignored if `na_inst` is provided
:param kwargs: all other keyword arguments are passed to the NetAuth instance, if it is created internally
"""

name = "netauth"

def __init__(self, *, conf: Path | None = None, **kwargs):
Expand All @@ -45,6 +46,7 @@ def check_credentials(self, username: str, password: str) -> bool:

def getUserInfo(self, username):
username = bytes2unicode(username)
print(repr(username))

if not username:
return defer.fail(ValueError("username not found"))
Expand Down

0 comments on commit 2d0042a

Please sign in to comment.