# HG changeset patch # User Marcin Kuzminski # Date 2011-03-22 11:05:34 # Node ID 7327a0d1584cf28d33e738048af1f6809d499451 # Parent 07a23d9cfb67881693c121560c8150e77e1aeec8 fixes #136 leftover patch diff --git a/rhodecode/lib/auth.py b/rhodecode/lib/auth.py --- a/rhodecode/lib/auth.py +++ b/rhodecode/lib/auth.py @@ -106,9 +106,9 @@ class RhodeCodeCrypto(object): :param hashed: password in hashed form """ - if __platform__ == 'Windows': + if __platform__ in PLATFORM_WIN: return sha256(password).hexdigest() == hashed - elif __platform__ in ('Linux', 'Darwin'): + elif __platform__ in PLATFORM_OTHERS: return bcrypt.hashpw(password, hashed) == hashed else: raise Exception('Unknown or unsupported platform %s' % __platform__)