退出和用户的链接使用https:// +Setting.host_name

This commit is contained in:
ouyangxuhua 2016-03-16 11:24:55 +08:00
parent da1b27cd38
commit dcadadae03
1 changed files with 10 additions and 2 deletions

View File

@ -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