2016-05-02 10:54:32 -07:00
|
|
|
<html>
|
|
|
|
<body>
|
2016-05-16 17:19:07 -07:00
|
|
|
<div id="container"/>
|
2016-05-02 10:54:32 -07:00
|
|
|
{% if current_user and current_user.is_authenticated %}
|
|
|
|
<h1>Hello {{ current_user.name }} from Vanth</h1>
|
2016-05-02 10:58:28 -07:00
|
|
|
<form action="/logout/" method="POST">
|
|
|
|
<input type="submit">Log out</input>
|
|
|
|
</form>
|
2016-05-02 10:54:32 -07:00
|
|
|
{% else %}
|
|
|
|
<h1>Please log in</h1>
|
|
|
|
<form action="/login/" method="POST">
|
|
|
|
<label>username</label><input type="text" name="username"></input>
|
|
|
|
<label>password</label><input type="password" name="password"></input>
|
|
|
|
<input type="submit">Log in</input>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2016-05-16 17:19:07 -07:00
|
|
|
<script src="build/bundle.js"></script>
|
2016-05-02 10:54:32 -07:00
|
|
|
</body>
|
|
|
|
</html>
|