<% title "Welcome!" %> <% if params[:state] == "email_signup" && Settings::Authentication.allow_email_password_registration %> <%= render "shared/authentication/email_registration_form" %> <% elsif params[:state] == "email_signup" %> <% elsif forem_creator_flow_enabled? %> <%= render "shared/authentication/forem_creator_signup" %> <% elsif waiting_on_first_user? %> <%# TODO: Delete this view once forem creator onboarding is shipped %> <%= render "shared/authentication/initial_account_wizard" %> <% else %> <%= render "devise/shared/authorization_error" %> <%= render "devise/registrations/registration_form" %> <% end %>