2017-11-12 14:23:05 +01:00
|
|
|
<h2>Login in to Mastodon Frontend</h2>
|
2017-11-23 12:06:14 +01:00
|
|
|
<%= 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 -> %>
|
2018-04-18 12:13:57 +02:00
|
|
|
<%= text_input f, :name, placeholder: "Username or email" %>
|
2017-11-12 14:23:05 +01:00
|
|
|
<br>
|
2017-11-16 12:26:56 +01:00
|
|
|
<%= password_input f, :password, placeholder: "Password" %>
|
2017-11-12 14:23:05 +01:00
|
|
|
<br>
|
2017-11-16 12:26:56 +01:00
|
|
|
<%= submit "Log in" %>
|
2017-11-12 14:23:05 +01:00
|
|
|
<% end %>
|