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>
7 <h2>OAuth Authorization</h2>
8 <%= form_for @conn, o_auth_path(@conn, :authorize), [as: "authorization"], fn f -> %>
9 <%= label f, :name, "Name or email" %>
10 <%= text_input f, :name %>
12 <%= label f, :password, "Password" %>
13 <%= password_input f, :password %>
15 <%= hidden_input f, :client_id, value: @client_id %>
16 <%= hidden_input f, :response_type, value: @response_type %>
17 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
18 <%= hidden_input f, :scope, value: @scope %>
19 <%= hidden_input f, :state, value: @state%>
20 <%= submit "Authorize" %>