logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

consumer.html.eex (840B)


  1. <h2><%= Gettext.dpgettext("static_pages", "oauth external provider page title", "Sign in with external provider") %></h2>
  2. <%= form_for @conn, Routes.o_auth_path(@conn, :prepare_request), [as: "authorization", method: "get"], fn f -> %>
  3. <div style="display: none">
  4. <%= render Phoenix.Controller.view_module(@conn), "_scopes.html", Map.merge(assigns, %{form: f}) %>
  5. </div>
  6. <%= hidden_input f, :client_id, value: @client_id %>
  7. <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
  8. <%= hidden_input f, :state, value: @state %>
  9. <%= for strategy <- Pleroma.Config.oauth_consumer_strategies() do %>
  10. <%= submit Gettext.dpgettext("static_pages", "oauth external provider sign in button", "Sign in with %{strategy}", strategy: String.capitalize(strategy)), name: "provider", value: strategy %>
  11. <% end %>
  12. <% end %>