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

View File

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