mirror of
https://github.com/moepman/bk-dss
synced 2024-12-22 13:54:26 +01:00
dss.py: fix python3 ldap exception handling
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
parent
be150eb06f
commit
44dbd1d36c
2
dss.py
2
dss.py
@ -184,7 +184,7 @@ def login():
|
||||
try:
|
||||
l.simple_bind_s(user, pswd)
|
||||
except ldap.INVALID_CREDENTIALS as e:
|
||||
form.pswd.errors.append(e.message['desc'])
|
||||
form.pswd.errors.append('Invalid Credentials')
|
||||
l.unbind_s()
|
||||
return render_template('login.html', form=form, nav=buildNav())
|
||||
l.unbind_s()
|
||||
|
Loading…
Reference in New Issue
Block a user