Skip to content

Commit

Permalink
Removing an errant code part which used an undefined variable
Browse files Browse the repository at this point in the history
This cleans up a code fragement left over after a refactoring and now pointed to an undefined variable. It has no practical use as far as I can tell, so removing it.
  • Loading branch information
02strich authored Sep 23, 2018
1 parent 1e65b96 commit 416c2e2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions django_auth_kerberos/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class KrbBackend(ModelBackend):

def authenticate(self, username=None, password=None):
UserModel = get_user_model()
if username is None:
username = kwargs.get(UserModel.USERNAME_FIELD)

if not self.check_password(username, password):
return None
Expand Down

1 comment on commit 416c2e2

@02strich
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This addresses issue #14

Please sign in to comment.