Merge branch 'cycles-router-api-routes' into 'develop'
[akkoma] / lib / pleroma / web / templates / o_auth / o_auth / register.html.eex
index f4547170cdb93258b197b23f6786286cef3e8749..99f900fb7ccf59a9a64f1c9c22f78c11bd822605 100644 (file)
@@ -7,12 +7,8 @@
 
 <h2>Registration Details</h2>
 
-<p>If you'd like to register a new account,
-<br>
-please provide the details below.</p>
-<br>
-
-<%= form_for @conn, o_auth_path(@conn, :register), [], fn f -> %>
+<p>If you'd like to register a new account, please provide the details below.</p>
+<%= form_for @conn, Routes.o_auth_path(@conn, :register), [as: "authorization"], fn f -> %>
 
 <div class="input">
   <%= label f, :nickname, "Nickname" %>
@@ -25,14 +21,11 @@ please provide the details below.</p>
 
 <%= submit "Proceed as new user", name: "op", value: "register" %>
 
-<br>
-<br>
-<br>
 <p>Alternatively, sign in to connect to existing account.</p>
 
 <div class="input">
-  <%= label f, :auth_name, "Name or email" %>
-  <%= text_input f, :auth_name %>
+  <%= label f, :name, "Name or email" %>
+  <%= text_input f, :name %>
 </div>
 <div class="input">
   <%= label f, :password, "Password" %>
@@ -44,5 +37,6 @@ please provide the details below.</p>
 <%= hidden_input f, :client_id, value: @client_id %>
 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
 <%= hidden_input f, :scope, value: Enum.join(@scopes, " ") %>
+<%= hidden_input f, :state, value: @state %>
 
 <% end %>