We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9389260 commit b58759aCopy full SHA for b58759a
st2auth_flat_file_backend/flat_file.py
@@ -74,10 +74,10 @@ def _load_file(self):
74
self.entries[username] = hash_data
75
76
def check_password(self, username, password):
77
+ encode_local = locale.getpreferredencoding()
78
+ pw = bytes(password, encoding=encode_local)
79
if username in self.entries:
80
hash_data = self.entries[username]
- encode_local = locale.getpreferredencoding()
- pw = bytes(password, encoding=encode_local)
81
if hash_data.startswith("$apr1$"):
82
LOG.warning(
83
"%s uses MD5 algorithm to hash the password."
0 commit comments