diff options
Diffstat (limited to 'grumpy/webapp.py')
-rw-r--r-- | grumpy/webapp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grumpy/webapp.py b/grumpy/webapp.py index b430301..7ce1f56 100644 --- a/grumpy/webapp.py +++ b/grumpy/webapp.py @@ -28,6 +28,7 @@ def before_request(): g.user = User.query.filter_by(openid=session['openid']).first() @app.route('/') +@requires_auth def dashboard(): if g.user is None: return redirect(url_for('index')) @@ -45,6 +46,7 @@ def index(): return render_template('index.html', cats=cats) @app.route('/account/') +@requires_auth def account(): return render_template('account.html') |