Skip to content
Snippets Groups Projects
Unverified Commit cf485633 authored by Aishwarya's avatar Aishwarya
Browse files

Added routes for trial registration api

parent 94490b63
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -87,7 +87,9 @@ module Users
:password_automatically_set,
:name,
:password,
:username
:username,
:first_name,
:last_name
]
end
 
Loading
Loading
@@ -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)
Loading
Loading
Loading
Loading
@@ -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'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment