fixed double slash from mobile.
This commit is contained in:
parent
727d775d7b
commit
f73ca8846b
|
@ -27,7 +27,7 @@ class Admin::RegisterApiController < ApplicationController
|
|||
end
|
||||
|
||||
def send_confirmation_email(email, confirmation_token, site_token)
|
||||
url = "#{request.protocol}#{request.host_with_port}//register/confirm_email?confirmation=#{confirmation_token}&site=#{site_token}"
|
||||
url = "#{request.protocol}#{request.host_with_port}/register/confirm_email?confirmation=#{confirmation_token}&site=#{site_token}"
|
||||
email = Email.new(:mail_to => email, :mail_subject => "Confirmation email for orbit store.", :template => "email/site_confirmation_email.html.erb", :template_data => {"url" => url})
|
||||
email.deliver
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue