# HG changeset patch # User Marcin Kuzminski # Date 1300791934 -3600 # Node ID 7327a0d1584cf28d33e738048af1f6809d499451 # Parent 07a23d9cfb67881693c121560c8150e77e1aeec8 fixes #136 leftover patch diff -r 07a23d9cfb67 -r 7327a0d1584c rhodecode/lib/auth.py --- a/rhodecode/lib/auth.py Mon Mar 21 23:06:07 2011 +0100 +++ b/rhodecode/lib/auth.py Tue Mar 22 12:05:34 2011 +0100 @@ -106,9 +106,9 @@ :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__)