退出和用户的链接使用https:// +Setting.host_name
This commit is contained in:
parent
da1b27cd38
commit
dcadadae03
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue