mirror of
https://github.com/moepman/bk-dss
synced 2024-12-22 12:44:27 +01:00
Remove unused variable
This commit is contained in:
parent
9e0275eef2
commit
251dc90ce8
2
dss.py
2
dss.py
@ -148,7 +148,7 @@ def edit():
|
|||||||
try:
|
try:
|
||||||
l.simple_bind_s(creds['user'], creds['pswd'])
|
l.simple_bind_s(creds['user'], creds['pswd'])
|
||||||
l.passwd_s(creds['user'], creds['pswd'], npwd)
|
l.passwd_s(creds['user'], creds['pswd'], npwd)
|
||||||
except ldap.INVALID_CREDENTIALS as e:
|
except ldap.INVALID_CREDENTIALS:
|
||||||
form.user.errors.append('Invalid credentials')
|
form.user.errors.append('Invalid credentials')
|
||||||
l.unbind_s()
|
l.unbind_s()
|
||||||
return render_template('edit.html', form=form, nav=build_nav())
|
return render_template('edit.html', form=form, nav=build_nav())
|
||||||
|
Loading…
Reference in New Issue
Block a user