|
|
|
@ -2943,11 +2943,19 @@ int main(int argc, char** argv){
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def user_url_in_org(user_id)
|
|
|
|
|
return Setting.host_name + "/users/" + user_id.to_s
|
|
|
|
|
if Rails.env.development?
|
|
|
|
|
return "http://localhost:3000/users/" + user_id.to_s
|
|
|
|
|
else
|
|
|
|
|
return "https://" + Setting.host_name + "/users/" + user_id.to_s
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def logout_url_without_domain
|
|
|
|
|
return Setting.host_name + "/logout"
|
|
|
|
|
if Rails.env.development?
|
|
|
|
|
return "http://localhost:3000/logout"
|
|
|
|
|
else
|
|
|
|
|
return "https://" + Setting.host_name + "/logout"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def signin_url_without_domain
|
|
|
|
|