login.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div class="w-80" style="background-color: white; border: 1px solid black; padding: 16px; margin: 4px">
  4. <h1>Login</h1>
  5. {% if glitch_enabled %}
  6. <p>We're running on <a href="https://glitch.com/~hogumathi">Glitch</a>, meaning you can run your own copy of this app or inspect the running source code.</p>
  7. <p>We highly recommend you run your own copy for maximal security and control.</p>
  8. {% endif %}
  9. {% if add_account_enabled %}
  10. <p>Choose a login provider. You can login multiple times with each provider.</p>
  11. <ul>
  12. {% if twitter_enabled %}
  13. <li><a href="{{ url_for('twitter_v2_facade.oauth2_login.get_login_html') }}">Twitter v2</a></li>
  14. {% endif %}
  15. {% if mastodon_enabled %}
  16. <li><form method="GET" action="{{ url_for('mastodon_facade.get_login_html') }}">
  17. <button type="submit">Mastodon</button> on instance <input name="instance" value="mastodon.social" placeholder="instance hostname"></form>
  18. <p><a href="mailto:biz@harlanji.com?subject=mastodon%20server">Get your own managed Mastodon server</a></p>
  19. </li>
  20. {% endif %}
  21. {% if messages_enabled %}
  22. <li><form method="POST" action="{{ url_for('messages_facade.post_api_login') }}">
  23. <button type="submit">Email</button> <input name="host" placeholder="smtp.example.com">
  24. <input name="user" placeholder="me@example.com">
  25. <input name="password" type="password" placeholder="pa$$word123">
  26. </form>
  27. <p>This will use IMap and SMTP over SSL.</p>
  28. </li>
  29. {% endif %}
  30. {% if youtube_enabled %}
  31. <li><a href="{{ url_for('youtube_v3_facade.get_api_login') }}">YouTube</a></li>
  32. {% endif %}
  33. </ul>
  34. {% else %}
  35. <p>Adding accounts is disabled on this instance.</p>
  36. {% endif %}
  37. <h2>Logged In Accounts</h2>
  38. {% include "partial/user-picker.html" %}
  39. </div>
  40. {% endblock %}