This commit is contained in:
Nicolas Bally 2018-02-21 22:27:56 +01:00
parent 8897fa2588
commit a9c740f617

View File

@ -61,7 +61,7 @@ class Public::CustomersAuthsController < ApplicationController
cookies.permanent[:video_read] = "true"
flash[:read_video] = true
end
if false
if user.reseauxes.map(&:id).include?(2)
redirect_to public_reseaux_products_path(:reseaux_id => 2)
@ -69,6 +69,10 @@ class Public::CustomersAuthsController < ApplicationController
redirect_to :root
end
else
redirect_to public_my_reseauxes_path
end
else
flash.now.alert = "Email ou mot de passe incorect"