Commit cf485633 authored by Aishwarya Subramanian's avatar Aishwarya Subramanian

Added routes for trial registration api

parent 94490b63
......@@ -87,7 +87,9 @@ module Users
:password_automatically_set,
:name,
:password,
:username
:username,
:first_name,
:last_name
]
end
......@@ -107,6 +109,10 @@ module Users
if user_params[:skip_confirmation].nil?
user_params[:skip_confirmation] = skip_user_confirmation_email_from_setting
end
if (user_params[:first_name].present? || user_params[:last_name].present?) && !user_params[:name].present?
user_params[:name] = "#{user_params[:first_name]} #{user_params[:last_name]}"
end
end
if user_default_internal_regex_enabled? && !user_params.key?(:external)
......
......@@ -188,6 +188,10 @@ Rails.application.routes.draw do
draw :user
draw :project
Gitlab.ee do
draw :trial_registration
end
root to: "root#index"
get '*unmatched_route', to: 'application#route_not_found'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment