Preserve state in oauth
[akkoma] / lib / pleroma / web / templates / o_auth / o_auth / show.html.eex
1 <h2>OAuth Authorization</h2>
2 <%= form_for @conn, o_auth_path(@conn, :authorize), [as: "authorization"], fn f -> %>
3 <%= label f, :name, "Name" %>
4 <%= text_input f, :name %>
5 <br>
6 <%= label f, :password, "Password" %>
7 <%= password_input f, :password %>
8 <br>
9 <%= hidden_input f, :client_id, value: @client_id %>
10 <%= hidden_input f, :response_type, value: @response_type %>
11 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
12 <%= hidden_input f, :scope, value: @scope %>
13 <%= hidden_input f, :state, value: @state%>
14 <%= submit "Authorize" %>
15 <% end %>