summaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/app.py b/app.py
index dfe3b5a..adc2eb8 100644
--- a/app.py
+++ b/app.py
@@ -23,6 +23,8 @@ def ldap_connect():
g.ldap = account.AccountService(app.config['LDAP_HOST'], app.config['LDAP_BASE_DN'],
app.config['LDAP_ADMIN_USER'], app.config['LDAP_ADMIN_PASS'], app.all_services)
+@app.before_request
+def initialize_user():
g.user = None
if 'username' in session and 'password' in session:
@@ -100,7 +102,7 @@ def register():
@templated('register_complete.html')
@logout_required
def register_complete(token):
- #TODO: check for double uids
+ #TODO: check for double uids and mail
username, mail = http_verify_confirmation('register', token.encode('ascii'), timeout=3*24*60*60)