##// END OF EJS Templates
fixes #136 leftover patch
marcink -
r1168:7327a0d1 default
parent child Browse files
Show More
@@ -106,9 +106,9 b' class RhodeCodeCrypto(object):'
106 :param hashed: password in hashed form
106 :param hashed: password in hashed form
107 """
107 """
108
108
109 if __platform__ == 'Windows':
109 if __platform__ in PLATFORM_WIN:
110 return sha256(password).hexdigest() == hashed
110 return sha256(password).hexdigest() == hashed
111 elif __platform__ in ('Linux', 'Darwin'):
111 elif __platform__ in PLATFORM_OTHERS:
112 return bcrypt.hashpw(password, hashed) == hashed
112 return bcrypt.hashpw(password, hashed) == hashed
113 else:
113 else:
114 raise Exception('Unknown or unsupported platform %s' % __platform__)
114 raise Exception('Unknown or unsupported platform %s' % __platform__)
General Comments 0
You need to be logged in to leave comments. Login now