MastoAPI and OAuth: allow login with either email or username.

This commit is contained in:
eal 2018-04-18 13:13:57 +03:00
commit 947431e9aa
5 changed files with 11 additions and 4 deletions

View file

@ -2,7 +2,7 @@
<p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
<h2>OAuth Authorization</h2>
<%= form_for @conn, o_auth_path(@conn, :authorize), [as: "authorization"], fn f -> %>
<%= label f, :name, "Name" %>
<%= label f, :name, "Name or email" %>
<%= text_input f, :name %>
<br>
<%= label f, :password, "Password" %>