Pleroma/lib/pleroma/web/templates/mastodon_api/mastodon/login.html.eex

12 lines
343 B
Elixir
Raw Normal View History

<h2>Login to Mastodon Frontend</h2>
<%= if @error do %>
<h2><%= @error %></h2>
<% end %>
2017-11-12 14:23:05 +01:00
<%= form_for @conn, mastodon_api_path(@conn, :login), [as: "authorization"], fn f -> %>
<%= text_input f, :name, placeholder: "Username or email" %>
2017-11-12 14:23:05 +01:00
<br>
<%= password_input f, :password, placeholder: "Password" %>
2017-11-12 14:23:05 +01:00
<br>
<%= submit "Log in" %>
2017-11-12 14:23:05 +01:00
<% end %>