class Users::SessionsController < Devise::SessionsController
layout "devise"
# POST /resource/sign_in
def create
@user = User.find_by_email(params[:user][:email])
if @user.visible == 0
flash[:notice] = "#{ @user.email } do not have portal access."
redirect_to :controller => 'welcome'
else
super
end
end