Merge branch 'cycles-router-api-routes' into 'develop'
[akkoma] / lib / pleroma / web / templates / o_auth / o_auth / consumer.html.eex
index 9365c7c441b714d9134ffd6bb280882522ef7814..dc4521a62b41b7ee358e7c1908eafe09216d24fd 100644 (file)
@@ -1,9 +1,9 @@
-<br>
-<br>
 <h2>Sign in with external provider</h2>
 
-<%= form_for @conn, o_auth_path(@conn, :prepare_request), [method: "get"], fn f -> %>
-  <%= render @view_module, "_scopes.html", Map.put(assigns, :form, f) %>
+<%= form_for @conn, Routes.o_auth_path(@conn, :prepare_request), [as: "authorization", method: "get"], fn f -> %>
+  <div style="display: none">
+    <%= render @view_module, "_scopes.html", Map.merge(assigns, %{form: f}) %>
+  </div>
 
   <%= hidden_input f, :client_id, value: @client_id %>
   <%= hidden_input f, :redirect_uri, value: @redirect_uri %>