# HG changeset patch # User Marcin Kuzminski # Date 2017-04-12 18:53:28 # Node ID a402cae58cd8ba5ce1fe57fc32b9793056c753f3 # Parent 82398231a176cf233c3c516af04fec4e5c9b7299 auth: the correct prefixes for python bcrypt are $2a or $2b. handle the 2b too for consistency. diff --git a/rhodecode/lib/auth.py b/rhodecode/lib/auth.py --- a/rhodecode/lib/auth.py +++ b/rhodecode/lib/auth.py @@ -138,7 +138,7 @@ class _RhodeCodeCryptoBase(object): class _RhodeCodeCryptoBCrypt(_RhodeCodeCryptoBase): - ENC_PREF = '$2a$10' + ENC_PREF = ('$2a$10', '$2b$10') def hash_create(self, str_): self._assert_bytes(str_)