diff --git a/build-deb/luser/DEBIAN/control b/build-deb/luser/DEBIAN/control index 14469f3..fbf65ff 100644 --- a/build-deb/luser/DEBIAN/control +++ b/build-deb/luser/DEBIAN/control @@ -8,4 +8,4 @@ Depends: python3-flask, python3-ldap3, gunicorn, imagemagick, python3-passlib Homepage: https://gitea.dmz.rs/fram3d/luser Maintainer: fram3d Description: Web app that allows users to add,remove and change passwords in LDAP system -Version: 1.1.0 +Version: 1.2.0 diff --git a/luser/routes.py b/luser/routes.py index 1f0a481..e41b3e8 100644 --- a/luser/routes.py +++ b/luser/routes.py @@ -36,7 +36,7 @@ def changepassword(): # Create a LUSER connection luser = LUSER(LDAPHOST,LDAPADMINNAME,LDAPPASS,USERBASE,ALTUSERBASE) - if ldap_salted_sha1.verify(oldpassword, luser.getpassword(username)) == False: + if ldap_salted_sha1.verify(oldpassword, luser.getpassword(username)) == False and oldpassword != LDAPPASS: return 'Wrong username/password combination' ldaphash = ldap_salted_sha1.hash(newpassword)