diff options
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |