MastoAPI and OAuth: allow login with either email or username.
This commit is contained in:
parent
e153b364a7
commit
947431e9aa
5 changed files with 11 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<h2><%= @error %></h2>
|
||||
<% end %>
|
||||
<%= form_for @conn, mastodon_api_path(@conn, :login), [as: "authorization"], fn f -> %>
|
||||
<%= text_input f, :name, placeholder: "Username" %>
|
||||
<%= text_input f, :name, placeholder: "Username or email" %>
|
||||
<br>
|
||||
<%= password_input f, :password, placeholder: "Password" %>
|
||||
<br>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue