suite
This commit is contained in:
parent
bc819872c0
commit
0ddac93147
@ -30,12 +30,15 @@ class Public::ReseauxesController < ApplicationController
|
|||||||
|
|
||||||
sub_domain = request.domain(2).split(".")[0]
|
sub_domain = request.domain(2).split(".")[0]
|
||||||
@reseaux = Reseaux.where(:sub_domain => sub_domain.to_s).first
|
@reseaux = Reseaux.where(:sub_domain => sub_domain.to_s).first
|
||||||
|
if @reseaux
|
||||||
|
if request.domain(1) == "localhost.qz"
|
||||||
|
redirect_to "http://localhost:3000/public/customers_auths/new?p="+@reseaux.token.to_s
|
||||||
|
|
||||||
if request.domain(1) == "localhost.qz"
|
else
|
||||||
redirect_to "http://localhost:3000/public/customers_auths/new?p="+@reseaux.token.to_s
|
redirect_to "http://negos.pro/public/customers_auths/new?p="+@reseaux.token.to_s
|
||||||
|
end
|
||||||
else
|
else
|
||||||
render :inline => @reseaux.id.to_s
|
redirect_to "http://negos.pro"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user