Skip to content

Commit

Permalink
fix remnant errors in tests and code
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdaTotoro committed Nov 1, 2021
1 parent fa9bf47 commit c23c2cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nativeauthenticator/nativeauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def add_data_from_firstuse(self):
with dbm.open(self.firstuse_db_path, "c", 0o600) as db:
for user in db.keys():
password = db[user].decode()
new_user = self.create_user(user.decode(), password, password)
new_user = self.create_user(user.decode(), password)
if not new_user:
error = (
f"User {user} was not created. Check password "
Expand Down
2 changes: 1 addition & 1 deletion nativeauthenticator/tests/test_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ async def test_no_change_to_bad_password(tmpcwd, app):
auth.check_common_password = True
auth.minimum_password_length = 8

auth.create_user("johnsnow", "ironwood", "ironwood")
auth.create_user("johnsnow", "ironwood")

# Can't change password of nonexistent users.
assert auth.change_password("samwelltarly", "palanquin") is None
Expand Down

0 comments on commit c23c2cb

Please sign in to comment.