%= if get_flash(@conn, :info) do %>
<%= get_flash(@conn, :info) %>
<% end %>
<%= if get_flash(@conn, :error) do %>
<%= get_flash(@conn, :error) %>
<% end %>
Registration Details
If you'd like to register a new account,
please provide the details below.
<%= form_for @conn, o_auth_path(@conn, :register), [], fn f -> %>
<%= label f, :nickname, "Nickname" %>
<%= text_input f, :nickname, value: @nickname %>
<%= label f, :email, "Email" %>
<%= text_input f, :email, value: @email %>
<%= submit "Proceed as new user", name: "op", value: "register" %>
Alternatively, sign in to connect to existing account.
<%= label f, :auth_name, "Name or email" %>
<%= text_input f, :auth_name %>
<%= label f, :password, "Password" %>
<%= password_input f, :password %>
<%= submit "Proceed as existing user", name: "op", value: "connect" %>
<%= 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 %>