1. Zhang Huangbin
  2. iredadmin-ose

Source

iredadmin-ose / libs / ldaplib / admin.py

Diff from to

File libs/ldaplib/admin.py

 from libs import iredutils
 from libs.ldaplib import core, attrs, ldaputils, iredldif, deltree, connUtils, decorators
 
-cfg = web.iredconfig
 session = web.config.get('_session')
 
 
         self.newpw = web.safestr(data.get('newpw'))
         self.confirmpw = web.safestr(data.get('confirmpw'))
 
-        result = iredutils.verifyNewPasswords(self.newpw, self.confirmpw)
+        result = iredutils.verify_new_password(self.newpw, self.confirmpw)
         if result[0] is True:
             self.passwd = ldaputils.generateLDAPPasswd(result[1])
         else:
             self.newpw = web.safestr(data.get('newpw'))
             self.confirmpw = web.safestr(data.get('confirmpw'))
 
-            result = iredutils.verifyNewPasswords(self.newpw, self.confirmpw)
+            result = iredutils.verify_new_password(self.newpw, self.confirmpw)
             if result[0] is True:
                 self.passwd = result[1]
             else: