{% extends 'base.html' %} {% block title %}MarkWiki - Log in{% endblock %} {% block content %}
Certain actions on MarkWiki require a logged in user. Please enter your user information.
{% if config['ALLOW_REGISTRATION'] %}Are you a new user? Register now!
{% endif %} {% if config['ALLOW_REGISTRATION'] %}You may also log in with Mozilla Persona.
{% endif %} {% endblock %} {% block onready %} {% if config['ALLOW_REGISTRATION'] %} {% if request.args.get('next') %} App.next = '{{ request.args.get('next') }}'; {% endif %} {# Only the login page will be used for non-authenticated Persona users. #} {% if not current_user.is_authenticated() %} navigator.id.watch({ loggedInUser: null, onlogin: App.verifyAssertion, onlogout: App.logoutUser }); {% endif %} var logIn = document.getElementById('login'); if (logIn) { logIn.onclick = function() { navigator.id.request(); }; } {% endif %} {% endblock %}