This commit is contained in:
Nicolas Bally 2017-10-19 18:43:23 +02:00
parent cce43c2c01
commit a9a99de45f

View File

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