1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-02 09:08:04 +02:00

pep8 compliance

This commit is contained in:
kakwa 2015-07-14 14:49:22 +02:00
parent afb3c0ef23
commit 315c226bf4

View File

@ -659,7 +659,9 @@ class LdapCherry(object):
if params['attrs'][pwd1] != params['attrs'][pwd2]:
raise PasswordMissMatch()
if params['attrs'][pwd1] != '' and \
not self._checkppolicy(params['attrs'][pwd1])['match']:
not self._checkppolicy(
params['attrs'][pwd1]
)['match']:
raise PPolicyError()
params['attrs'][attr] = params['attrs'][pwd1]
if attr in params['attrs'] and params['attrs'][attr] != '':