This repository has been archived on 2021-01-16. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-12-03 19:51:14 -06:00
|
|
|
{% extends "base.njk" %}
|
|
|
|
{% block content %}
|
|
|
|
<h3>Log in to {{ sitename }}</h3><span style="font-size: small;">Not registered yet? Sign up <a href="/register">here</a>.</br></br></span>
|
|
|
|
<form action="/api/login" method="POST" target="responseFrame">
|
|
|
|
Username: </br><input type="text" name="username" style="min-width: 300px" placeholder="e.g. lain"/></br>
|
2019-12-05 15:03:27 -06:00
|
|
|
Password: </br><input type="password" name="password" style="min-width: 300px"/></br></br>
|
2019-12-03 19:51:14 -06:00
|
|
|
<input type="submit" value="Submit">
|
|
|
|
</form>
|
2019-12-05 15:03:27 -06:00
|
|
|
<script type="text/javascript">
|
|
|
|
function handleLoad() {
|
|
|
|
var r = JSON.parse(document.getElementById('responseFrame').contentDocument.documentElement.textContent).success
|
|
|
|
if (typeof(r) !== 'undefined') window.location.href = '/profile'
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<iframe name="responseFrame" onload="handleLoad()" border="0" frameborder="0" style="display: inline;" id="responseFrame">
|
|
|
|
</iframe>
|
2019-12-03 19:51:14 -06:00
|
|
|
{% endblock %}
|