aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2013-08-18 12:20:22 +0200
committerTheo Chatzimichos <tampakrap@gentoo.org>2013-08-19 23:11:08 +0200
commit8493ae3b360a04adedfc75b095bac61421d9b3fd (patch)
tree45327de2481a0e5feb84a68807d8dbe50132ca07 /okupy/common/ldap_helpers.py
parentcheck if the passwords match in form.is_valid() (diff)
downloadidentity.gentoo.org-8493ae3b360a04adedfc75b095bac61421d9b3fd.tar.gz
identity.gentoo.org-8493ae3b360a04adedfc75b095bac61421d9b3fd.tar.bz2
identity.gentoo.org-8493ae3b360a04adedfc75b095bac61421d9b3fd.zip
Stop iterating when secondary password is removed
Diffstat (limited to 'okupy/common/ldap_helpers.py')
-rw-r--r--okupy/common/ldap_helpers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/okupy/common/ldap_helpers.py b/okupy/common/ldap_helpers.py
index ad1ef2f..c0e932b 100644
--- a/okupy/common/ldap_helpers.py
+++ b/okupy/common/ldap_helpers.py
@@ -64,6 +64,7 @@ def remove_secondary_password(request):
try:
if ldap_md5_crypt.verify(password, hash):
user.password.remove(hash)
+ break
except ValueError:
# ignore unknown hashes
pass