frenzy/lib/frenzy_web/templates/fervor/oauth/authorize.html.eex

12 lines
466 B
Elixir
Raw Normal View History

2019-04-01 16:24:22 +00:00
<h2><%= @client.client_name %> wants to access your account</h2>
2019-03-28 21:11:25 +00:00
<%= form_tag Routes.oauth_path(@conn, :authorize_post), method: :post do %>
<input type="hidden" name="client_id" value="<%= @client.client_id %>">
<%= if @state do %>
<input type="hidden" name="state" value="<%= @state %>">
<% end %>
<div class="form-group">
2019-04-01 16:24:22 +00:00
<%= submit "Grant access", class: "btn btn-primary" %>
<p>To reject the request, close this page.</p>
2019-03-28 21:11:25 +00:00
</div>
<% end %>