1. Zhang Huangbin
  2. iredadmin-ose

Source

iredadmin-ose / libs / iredutils.py

Diff from to

File libs/iredutils.py

  • Ignore whitespace
     salt[-1] = ''
     salt = '$'.join(salt)
 
-    if md5crypt.md5crypt(p, salt) == p:
+    if md5crypt.md5crypt(plain_password, salt) == challenge_password:
         return True
     else:
         return False