Bowe Strickland
2018-10-26 7477177e84424ccf92c1c6a8c80da2ffb1a6d3f5
Update htpasswd.py
1 files modified
2 ■■■■■ changed files
repoze/who/plugins/htpasswd.py 2 ●●●●● patch | view | raw | blame | history
repoze/who/plugins/htpasswd.py
@@ -101,6 +101,8 @@
    from base64 import standard_b64encode
    from repoze.who._compat import must_encode
    encrypted_string = standard_b64encode(sha1(must_encode(password)).digest())
    if hasattr(encrypted_string, "decode"):
        encrypted_string = encrypted_string.decode()
    return _same_string(hashed, "%s%s" % ("{SHA}", encrypted_string))
def plain_check(password, hashed):