{% extends "master.html" %}
{% block main %}
<div class="col-sm-12">
  <div id="welcome">
      <p>This page is used internally</p>
  </div>
</div>

<script type="text/javascript" src="https://login.persona.org/authentication_api.js"></script>
<script type="text/javascript">
    var loggedin = {{ loggedin|lower }};

    if(loggedin)
    {
        navigator.id.beginAuthentication(function(email) {
            navigator.id.completeAuthentication();
        });
    } else {
        navigator.id.raiseAuthenticationFailure('User cancelled signon');
    }
</script>
{% endblock %}
