summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorMarian Sigler <m@qjym.de>2012-09-27 03:26:17 +0200
committerMarian Sigler <m@qjym.de>2012-09-27 03:26:22 +0200
commit69f7c2e49fd9247111bee70b7afd56c104b1c984 (patch)
treef329030e478552c10c9fc9202f7c4cbb449cf559 /utils.py
parentdfdd6899668bb153bfe992566ec1d11de29f2ad7 (diff)
downloadweb-69f7c2e49fd9247111bee70b7afd56c104b1c984.tar.gz
web-69f7c2e49fd9247111bee70b7afd56c104b1c984.tar.bz2
web-69f7c2e49fd9247111bee70b7afd56c104b1c984.zip
Add about page; Comment out service settings
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 07c27a8..27dfb33 100644
--- a/utils.py
+++ b/utils.py
@@ -62,6 +62,8 @@ def login_user(username, password):
g.user = g.ldap.auth(username, password)
except ldap.INVALID_CREDENTIALS:
return False
+ except ldap.NO_SUCH_OBJECT:
+ return False
session['username'] = username
session['password'] = encrypt_password(password)