Skip to content

Commit

Permalink
log username for UnauthorizedLogins
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Feb 26, 2011
1 parent 9f37542 commit 0070e6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions master/buildbot/pbmanager.py
Expand Up @@ -166,6 +166,7 @@ def requestAvatarId(self, creds):
d = defer.maybeDeferred(creds.checkPassword, password)
def check(matched):
if not matched:
log.msg("invalid login from user '%s'" % creds.username)
return failure.Failure(error.UnauthorizedLogin())
return creds.username
d.addCallback(check)
Expand Down

0 comments on commit 0070e6c

Please sign in to comment.