fix error
This commit is contained in:
parent
6598636124
commit
039b3cd591
|
@ -29,6 +29,7 @@ class Admin::RegisterApiController < ApplicationController
|
||||||
response["error"] = "SITE_ALREADY_REGISTERED"
|
response["error"] = "SITE_ALREADY_REGISTERED"
|
||||||
end
|
end
|
||||||
if !site.nil?
|
if !site.nil?
|
||||||
|
send_confirmation_email(site.admin_email, site.confirmation_token, site.site_token)
|
||||||
p1 = fork {register_client_site(site,site.site_token) }
|
p1 = fork {register_client_site(site,site.site_token) }
|
||||||
Process.detach(p1)
|
Process.detach(p1)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue