diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2011-03-22 12:05:34 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2011-03-22 12:05:34 +0100 |
commit | 763583b6c8a95463788a48ebfee8278d839323b6 (patch) | |
tree | 3ad17e5a84e842065ea37492905fd8984dd82d7a | |
parent | 17d081a7fefd0fd51ad35b79977730522df684a6 (diff) |
fixes #136 leftover patch
-rw-r--r-- | rhodecode/lib/auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rhodecode/lib/auth.py b/rhodecode/lib/auth.py index d6cfe061..c2bb03ba 100644 --- 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__) |