Skip to content

Instantly share code, notes, and snippets.

@pmcao
Created April 15, 2016 21:56
Show Gist options
  • Save pmcao/868fc03c70ea2f27021bcda02c10a3da to your computer and use it in GitHub Desktop.
Save pmcao/868fc03c70ea2f27021bcda02c10a3da to your computer and use it in GitHub Desktop.
{% if not session.UserID%}
<a href="{{ url_for('login') }}">
log in
</a>
{% else %}
<a href="{{ url_for('logout') }}">
Hello {{ session.FullName }}, log out
</a>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment