mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
pep8 compliance
This commit is contained in:
parent
afb3c0ef23
commit
315c226bf4
@ -659,7 +659,9 @@ class LdapCherry(object):
|
|||||||
if params['attrs'][pwd1] != params['attrs'][pwd2]:
|
if params['attrs'][pwd1] != params['attrs'][pwd2]:
|
||||||
raise PasswordMissMatch()
|
raise PasswordMissMatch()
|
||||||
if params['attrs'][pwd1] != '' and \
|
if params['attrs'][pwd1] != '' and \
|
||||||
not self._checkppolicy(params['attrs'][pwd1])['match']:
|
not self._checkppolicy(
|
||||||
|
params['attrs'][pwd1]
|
||||||
|
)['match']:
|
||||||
raise PPolicyError()
|
raise PPolicyError()
|
||||||
params['attrs'][attr] = params['attrs'][pwd1]
|
params['attrs'][attr] = params['attrs'][pwd1]
|
||||||
if attr in params['attrs'] and params['attrs'][attr] != '':
|
if attr in params['attrs'] and params['attrs'][attr] != '':
|
||||||
|
Loading…
Reference in New Issue
Block a user