Merge branch 'fix/login-with-username-or-email' into 'develop'
[akkoma] / lib / pleroma / web / templates / o_auth / o_auth / show.html.eex
1 <p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
2 <p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
3 <h2>OAuth Authorization</h2>
4 <%= form_for @conn, o_auth_path(@conn, :authorize), [as: "authorization"], fn f -> %>
5 <%= label f, :name, "Name or email" %>
6 <%= text_input f, :name %>
7 <br>
8 <%= label f, :password, "Password" %>
9 <%= password_input f, :password %>
10 <br>
11 <%= hidden_input f, :client_id, value: @client_id %>
12 <%= hidden_input f, :response_type, value: @response_type %>
13 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
14 <%= hidden_input f, :scope, value: @scope %>
15 <%= hidden_input f, :state, value: @state%>
16 <%= submit "Authorize" %>
17 <% end %>