login.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <h1>Login</h1>
  2. {% if glitch_enabled %}
  3. <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>
  4. <p>We highly recommend you run your own copy for maximal security and control.</p>
  5. {% endif %}
  6. {% if add_account_enabled %}
  7. <p>Choose a login provider. You can login multiple times with each provider.</p>
  8. <ul>
  9. {% if twitter_enabled %}
  10. <li><a href="{{ url_for('twitter_v2_facade.oauth2_login.get_login_html') }}">Twitter v2</a></li>
  11. {% endif %}
  12. {% if mastodon_enabled %}
  13. <li><form method="GET" action="{{ url_for('mastodon_facade.get_login_html') }}">
  14. <button type="submit">Mastodon</button> on instance <input name="instance" value="mastodon.social" placeholder="instance hostname"></form>
  15. <p><a href="mailto:biz@harlanji.com?subject=mastodon%20server">Get your own managed Mastodon server</a></p>
  16. </li>
  17. {% endif %}
  18. {% if email_enabled %}
  19. <li><form method="GET" action="{{ url_for('email_facade.get_login_html') }}">
  20. <button type="submit">Email</button> <input name="address" placeholder="me@example.com"></form>
  21. </li>
  22. {% endif %}
  23. {% if youtube_enabled %}
  24. <li><a href="{{ url_for('youtube_facade.get_api_login') }}">YouTube</a></li>
  25. {% endif %}
  26. </ul>
  27. {% else %}
  28. <p>Adding accounts is disabled on this instance.</p>
  29. {% endif %}
  30. {% include "partial/user-picker.html" %}