1 <%= if get_flash(@conn, :info) do %>
2 <p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
4 <%= if get_flash(@conn, :error) do %>
5 <p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
8 <h2>OAuth Authorization</h2>
10 <%= form_for @conn, o_auth_path(@conn, :authorize), [as: "authorization"], fn f -> %>
12 <%= label f, :name, "Name or email" %>
13 <%= text_input f, :name %>
16 <%= label f, :password, "Password" %>
17 <%= password_input f, :password %>
20 <%= render @view_module, "_scopes.html", Map.merge(assigns, %{form: f, scope_param: "authorization[scope][]"}) %>
22 <%= hidden_input f, :client_id, value: @client_id %>
23 <%= hidden_input f, :response_type, value: @response_type %>
24 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
25 <%= hidden_input f, :state, value: @state %>
26 <%= submit "Authorize" %>
29 <%= if Pleroma.Config.oauth_consumer_enabled?() do %>
30 <%= render @view_module, Pleroma.Web.Auth.Authenticator.oauth_consumer_template(), assigns %>