Skip to content

Commit 1c9899f

Browse files
committed
Remove a bogus utf8 conversion in the (so far) unused check_encrypt. The
conversion is already explicitly handled in all `make_encrypt` backends where it's needed and the bytes break the initial `assure_password_strength` call. Including the fix here as only the new unit test triggers it.
1 parent 61c9ae3 commit 1c9899f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mig/shared/pwcrypto.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,6 @@ def check_encrypt(configuration, service, username, password, encrypted,
606606
accepted. Use only during active log in checks.
607607
"""
608608
_logger = configuration.logger
609-
password = force_utf8(password)
610609
if isinstance(encrypt_cache, dict) and \
611610
encrypt_cache.get(password, None) == encrypted:
612611
# print("got cached encrypt: %s" % encrypt_cache.get(password, None))

0 commit comments

Comments
 (0)