1
0
mirror of https://github.com/moepman/bk-dss synced 2024-06-02 04:52:34 +02:00

Remove unused variable

This commit is contained in:
Markus 2019-02-25 09:59:37 +01:00
parent 9e0275eef2
commit 251dc90ce8

2
dss.py
View File

@ -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())