{% extends 'base.html' %} {% block title %}MarkWiki - Log in{% endblock %} {% block content %}

Log in to proceed

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 %}
{{ form.csrf_token }} {% if request.args.get('next') %} {{ form.next(value=request.args.get('next')) }} {% endif %}
{{ form.username.label }} {{ form.username(class_='form-control', autofocus='autofocus', placeholder='Please enter your username...') }} {% for error in form.username.errors %}
{{ error }}
{% endfor %}
{{ form.password.label }} {{ form.password(class_='form-control', placeholder='Please enter your password...') }} {% for error in form.password.errors %}
{{ error }}
{% endfor %}
{% 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 %}