aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/auth_ia_login.html
blob: ebf08021fdae498e5a2dd4742810009055479ab8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% extends "base.html" %}
{% block body %}
<h1>Login with Internet Archive account</h1>

<p>Warning: still experimental!

<br>
<br>
<br>

{% if current_user.is_authenticated %}
  <div class="ui negative message">
    <div class="header">You are already logged in!</div>
    <p>You should logout first. Re-authenticating would be undefined behavior.
  </div>
{% else %}
  <form class="" role="login" action="/auth/ia/login" method="post">
    <div class="ui form">
        <div class="ui input huge fluid">
          <input type="email" placeholder="user@domain.tdl..." name="email" {% if email %}value="{{ email }}"{% endif %} aria-label="email for login">
        </div>
        <div class="ui action input huge fluid">
          <input type="password" placeholder="password" name="password" aria-label="internet archive password">
          <button class="ui button">Login</button>
        </div>
      </div>
    </div>
  </form>
{% endif %}

{% endblock %}