{% for message in get_flashed_messages() %}
diff --git a/sirius/web/templates/landing.html b/sirius/web/templates/landing.html index 35fbb55..33177f9 100644 --- a/sirius/web/templates/landing.html +++ b/sirius/web/templates/landing.html @@ -3,10 +3,11 @@ {% block title %}Sirius - Index{% endblock %} {% block page_content %} -

Hello, World!

- - - +
+

Little Printer

+

Send messages to your printer, and to printers belonging to your Twitter friends.

+

Status: pre-pre-alpha. (About.)

+

+ Sign in with Twitter

+
{% endblock %} diff --git a/sirius/web/twitter.py b/sirius/web/twitter.py index 7e8283c..af0eacd 100644 --- a/sirius/web/twitter.py +++ b/sirius/web/twitter.py @@ -42,6 +42,11 @@ def twitter_login(): return twitter.authorize(callback=flask.url_for('twitter_oauth.oauth_authorized', next=flask.request.args.get('next') or flask.request.referrer or None)) +@blueprint.route('/twitter/logout') +def twitter_logout(): + flask.session.pop('user_id', None) + flask.flash('You were signed out') + return flask.redirect('/') @blueprint.route('/twitter/oauth-authorized') @twitter.authorized_handler